{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Replication_log_secpol_protest.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}16 Aug 2023, 09:42:51

{com}. doedit "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Replication_Merge_SecPolice_Protest.do" 

. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. ******************************************************
. ** Merge, starting from raw secret police data file **
. ******************************************************
. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\rawdta_secretpolice.dta", replace
{txt}
{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * GDP & Population Gleditsch - Original data source: http://ksgleditsch.com/exptradegdp.html
. import delimited "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\gled_gdppop.csv", clear
{res}{txt}(encoding automatically selected: ISO-8859-1)
{text}(4 vars, 9,587 obs)

{com}. replace ccode=679 if ccode==678
{txt}(62 real changes made)

{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\gled_gdppop.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\gled_gdppop.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\gled_gdppop.dta"
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           3,840
{txt}{col 9}from master{col 30}{res}           3,758{txt}  (_merge==1)
{col 9}from using{col 30}{res}              82{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           9,505{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(82 observations deleted)

{com}. drop _merge
{txt}
{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * GDP & Population World bank - Original data source: https://ncgg.princeton.edu/wep/download.html
. import delimited "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\WB pop and GDP pc\08_15_23_0925am_wep.csv", clear
{res}{txt}(encoding automatically selected: ISO-8859-1)
{text}(9 vars, 19,772 obs)

{com}. do "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\WB pop and GDP pc\varlabel.do"
{txt}
{com}. label var gdppc_wdi "GDP per capita (constant 2005 US$)"
{txt}
{com}. label var pop_wdi "Population, total"
{txt}
{com}. 
{txt}end of do-file

{com}. drop if ccode=="NA"
{txt}(161 observations deleted)

{com}. destring ccode, replace
{txt}ccode: all characters numeric; {res}replaced {txt}as {res}int
{txt}
{com}. duplicates drop

{p 0 4}{txt}Duplicates in terms of {txt} all variables{p_end}

(4,967 observations deleted)

{com}. replace gdppc_wdi="." if gdppc_wdi=="NA"
{txt}(5,816 real changes made)

{com}. replace pop_wdi="." if pop_wdi=="NA"
{txt}(3,353 real changes made)

{com}. destring gdppc_wdi pop_wdi, replace
{txt}gdppc_wdi: all characters numeric; {res}replaced {txt}as {res}double
{txt}(5816 missing values generated)
{res}{txt}pop_wdi: all characters numeric; {res}replaced {txt}as {res}long
{txt}(3353 missing values generated)
{res}{txt}
{com}. replace ccode=679 if ccode==678
{txt}(46 real changes made)

{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\wb_gdppop.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\wb_gdppop.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\wb_gdppop.dta", keepusing(pop_wdi gdppc_wdi)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           2,489
{txt}{col 9}from master{col 30}{res}             554{txt}  (_merge==1)
{col 9}from using{col 30}{res}           1,935{txt}  (_merge==2)

{col 5}Matched{col 30}{res}          12,709{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(1,935 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. * Combine WB and Gleditsch data to construct full GDP p.c. and Population variables
. gen pop=pop_wdi
{txt}(2,338 missing values generated)

{com}. replace pop=pop_gleditsch*1000 if pop_wdi==.
{txt}(1,183 real changes made)

{com}. gen gdp_pc=gdppc_wdi
{txt}(4,532 missing values generated)

{com}. replace gdp_pc=realgdp_gleditsch if gdppc_wdi==.
{txt}(2,435 real changes made)

{com}. 
. drop realgdp_gleditsch pop_gleditsch pop_wdi gdppc_wdi
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * UCDP Intrastate Conflict, Version 20.1 - Original Source: https://ucdp.uu.se/downloads/ucdpprio/ucdp-prio-acd-201-dta.zip
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\ucdp-prio-acd-201.dta", clear
{txt}
{com}. keep if type>=3
{txt}(248 observations deleted)

{com}. gen intrastate=1
{txt}
{com}. collapse (max) intrastate, by(gwno_a year)
{res}{txt}
{com}. rename gwno_a ccode
{res}{txt}
{com}. destring ccode, replace
{txt}ccode: all characters numeric; {res}replaced {txt}as {res}int
{txt}
{com}. replace ccode=679 if ccode==678
{txt}(26 real changes made)

{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\ucdpconflict.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\ucdpconflict.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\ucdpconflict.dta", keepusing(intrastate)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}          11,789
{txt}{col 9}from master{col 30}{res}          11,725{txt}  (_merge==1)
{col 9}from using{col 30}{res}              64{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           1,538{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(64 observations deleted)

{com}. drop _merge
{txt}
{com}. replace intrastate=0 if intrastate==.
{txt}(11,725 real changes made)

{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * Polity data - For unknown reasons, Zimbabwe 1970-79 is excluded from the Polity V data, even though these years were included in polity IV and, according to p.46 of the user manual, should also be included in Polity V. These years are thus manually entered using values from the Polity IV data. Original source: http://www.systemicpeace.org/inscr/p5v2018d.xls
. import excel "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\p5v2018.xls", sheet("p5v2018") firstrow clear
{res}{text}(37 vars, 17,574 obs)

{com}. replace ccode=816 if ccode==818 & year!=1976
{txt}(42 real changes made)

{com}. replace ccode=530 if ccode==529 & year!=1993
{txt}(25 real changes made)

{com}. replace ccode=365 if ccode==364 & year!=1922
{txt}(69 real changes made)

{com}. replace ccode=345 if ccode==347 & year!=1991
{txt}(15 real changes made)

{com}. replace ccode=345 if ccode==342 & year!=2006
{txt}(103 real changes made)

{com}. replace ccode=679 if ccode==678 & year!=1990
{txt}(72 real changes made)

{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\polity5.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\polity5.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\polity5.dta", keepusing(polity2)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}          11,681
{txt}{col 9}from master{col 30}{res}           3,685{txt}  (_merge==1)
{col 9}from using{col 30}{res}           7,996{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           9,578{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(7,996 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. replace polity2=4 if ccode==552 & year>=1970 & year<=1979
{txt}(10 real changes made)

{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * Coup Attempts (Powell & Thyne)
. insheet using "http://www.uky.edu/~clthyn2/coup_data/powell_thyne_coups_final.txt", clear
{txt}(9 vars, 490 obs)

{com}. gen attempt=1
{txt}
{com}. replace ccode=679 if ccode==678
{txt}(5 real changes made)

{com}. collapse (max) attempt, by(ccode year)
{res}{txt}
{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\coups.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\coups.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\coups.dta", keepusing(attempt)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}          12,868
{txt}{col 9}from master{col 30}{res}          12,854{txt}  (_merge==1)
{col 9}from using{col 30}{res}              14{txt}  (_merge==2)

{col 5}Matched{col 30}{res}             409{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(14 observations deleted)

{com}. drop _merge
{txt}
{com}. replace attempt=0 if attempt==. & year>=1950
{txt}(12,854 real changes made)

{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * Fariss Human Rights Data - original source: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/TADPGE
. import delimited "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\HumanRightsProtectionScores_v3.01.csv", clear
{res}{txt}(encoding automatically selected: ISO-8859-2)
{text}(27 vars, 11,717 obs)

{com}. rename cow ccode
{res}{txt}
{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\HumanRightsProtectionScores_v3.01.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\HumanRightsProtectionScores_v3.01.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\HumanRightsProtectionScores_v3.01.dta", keepusing(theta_mean)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           2,824
{txt}{col 9}from master{col 30}{res}           2,185{txt}  (_merge==1)
{col 9}from using{col 30}{res}             639{txt}  (_merge==2)

{col 5}Matched{col 30}{res}          11,078{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(639 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * CIRI - Original dataset source: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/UKCPXT
. import delimited "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\CIRI Data 1981_2011 2014.04.14(1).csv", clear 
{res}{txt}(encoding automatically selected: ISO-8859-2)
{text}(28 vars, 6,262 obs)

{com}. drop if physint==.
{txt}(1,347 observations deleted)

{com}. tab ctry if cow==.

                                  {txt}CTRY {c |}      Freq.     Percent        Cum.
{hline 39}{c +}{hline 35}
                                Kosovo {c |}{res}          3       20.00       20.00
{txt}                            Montenegro {c |}{res}          6       40.00       60.00
{txt}                                Serbia {c |}{res}          6       40.00      100.00
{txt}{hline 39}{c +}{hline 35}
                                 Total {c |}{res}         15      100.00
{txt}
{com}. replace cow=347 if ctry=="Kosovo" & cow==.
{txt}(3 real changes made)

{com}. replace cow=345 if ctry=="Serbia" & cow==.
{txt}(6 real changes made)

{com}. replace cow=341 if ctry=="Montenegro" & cow==.
{txt}(6 real changes made)

{com}. rename cow ccode
{res}{txt}
{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\ciriX.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\ciriX.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\ciriX.dta", keepusing(physint disap kill polpris tort)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           8,424
{txt}{col 9}from master{col 30}{res}           8,386{txt}  (_merge==1)
{col 9}from using{col 30}{res}              38{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           4,877{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(38 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * State Capacity variables - Original dataset source: http://www-personal.umich.edu/~jkhanson/state_capacity.html
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\StateCapacityDataset_v1.dta", keepusing(Capacity v2clrspct v2stfisccap v2terr)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           5,121
{txt}{col 9}from master{col 30}{res}           5,067{txt}  (_merge==1)
{col 9}from using{col 30}{res}              54{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           8,196{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(54 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * V-Dem Data on CSOs - Original dataset (Entire dataset, which is too large for some Stata licenses, data included here represents subset of variables obtained via "keep" command) source: https://www.v-dem.net/data/the-v-dem-dataset/country-year-v-dem-fullothers-v13/
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\V-Dem_CSOvariables.dta", keepusing(v2csantimv v2csprtcpt v2csreprss v2cseeorgs v2csstruc_1)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           3,167
{txt}{col 9}from master{col 30}{res}           2,350{txt}  (_merge==1)
{col 9}from using{col 30}{res}             817{txt}  (_merge==2)

{col 5}Matched{col 30}{res}          10,913{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(817 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * CHISOLS dummy on regime change - Original dataset source (state year level): http://www.chisols.org/data-sets.html
. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\CHISOLSstyr5_0.dta", keepusing(solschdum)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           5,759
{txt}{col 9}from master{col 30}{res}           3,843{txt}  (_merge==1)
{col 9}from using{col 30}{res}           1,916{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           9,420{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(1,916 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. * Urban Population and Economic Growth: World Bank, via Escriba-Foch et al. 2018 - Original dataset source: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/TVZQG6 ()
. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\temp - Escribaajps.dta", keepusing(urbanpopulationoftotalspurbtotli l12gr)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           5,097
{txt}{col 9}from master{col 30}{res}           4,868{txt}  (_merge==1)
{col 9}from using{col 30}{res}             229{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           8,395{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(229 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. * Personalization: GWF 2018 - Original dataset source: https://sites.psu.edu/wright/data/ (GWF provide data and do-file for IRT model, variable used here results from running do-file on data)
. do "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\GWF Personalization\GWF-personalism-measure.do"
{txt}
{com}. 
.                         *global dir "C:\Users\jgw12\Dropbox\Research\GWF book files"
.                         *cd "$dir\Data\Final data files"
.                         
.                         
.                         use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\GWF Personalization\GWF.dta",clear
{txt}
{com}.                         
.                         * generate ccode variable for merging
.                         gen ccode=cowcode
{txt}
{com}.                         
.                         * Generate binary variables *
.                         gen milmerit_persB = milmerit_pers
{txt}
{com}.                         recode milmerit_persB (2=1) (1=0)  
{txt}(3,511 changes made to {bf:milmerit_persB})

{com}.                         tsset gwf_caseid year
{res}
{col 1}{txt:Panel variable: }{res:gwf_caseid}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:year}{txt:, }{res:{bind:1946}}{txt: to }{res:{bind:2010}}{p_end}
{txt}{col 10}Delta: {res}1 unit
{txt}
{com}.                         gen newparty =support==1 & l.support==0
{txt}
{com}.                         gen yr = year if newparty==1
{txt}(4,519 missing values generated)

{com}.                         egen yrs = max(yr), by(gwf_leaderid)
{txt}(3,624 missing values generated)

{com}.                         tsset gwf_caseid year
{res}
{col 1}{txt:Panel variable: }{res:gwf_caseid}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:year}{txt:, }{res:{bind:1946}}{txt: to }{res:{bind:2010}}{p_end}
{txt}{col 10}Delta: {res}1 unit
{txt}
{com}.                         replace newparty=1 if l.newparty==1 & l.gwf_leaderid==gwf_leaderid & year==year[_n-1]+1
{txt}(659 real changes made)

{com}.                         gen createparty =militparty_new==1 | (newparty==1  & partyhistory_post==1) 
{txt}
{com}.                         
.                         * Label variables *
.                         global pvars1 = "partyexcom_pers partyrbr officepers createparty"
{txt}
{com}.                         global pvars2 = "milnotrial milmerit_persB paramil_pers sectyapp_pers"
{txt}
{com}.                         label var officepers "Appointments to high office"
{txt}
{com}.                         label var createparty "Create new party"
{txt}
{com}.                         label var partyexcom_pers "Party exec committee"
{txt}
{com}.                         label var partyrbr "Rubber stamp party"
{txt}
{com}.                         label var milmerit_persB "Military promotions"
{txt}
{com}.                         label var milnotrial "Military purge"
{txt}
{com}.                         label var sectyapp_pers "Security apparatus"
{txt}
{com}.                         label var paramil_pers "Paramilitary"
{txt}
{com}.                         set seed 2453456
{txt}
{com}.                         
.                         * IRT model *
.                         irt 2pl $pvars1 $pvars2 
{res}{txt}
Fitting fixed-effects model:

Iteration 0:{space 3}log likelihood = {res:-22969.605}  
Iteration 1:{space 3}log likelihood = {res: -22931.47}  
Iteration 2:{space 3}log likelihood = {res:-22931.455}  
Iteration 3:{space 3}log likelihood = {res:-22931.455}  

Fitting full model:
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-21492.543}  
Iteration 1:{space 3}log likelihood = {res:-20095.733}  
Iteration 2:{space 3}log likelihood = {res:-20026.085}  
Iteration 3:{space 3}log likelihood = {res:-19907.278}  
Iteration 4:{space 3}log likelihood = {res:-19904.262}  
Iteration 5:{space 3}log likelihood = {res:-19904.256}  
Iteration 6:{space 3}log likelihood = {res:-19904.256}  
{res}
{txt}{col 1}Two-parameter logistic model{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:4,591}
{txt}{col 1}{lalign 14:Log likelihood}{col 15} = {res}{ralign 10:-19904.256}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}partyexcom~s {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 2.131928{col 26}{space 2} .1134983{col 37}{space 1}   18.78{col 46}{space 3}0.000{col 54}{space 4} 1.909476{col 67}{space 3} 2.354381
{txt}{space 8}Diff {c |}{col 14}{res}{space 2} .6085253{col 26}{space 2} .0280052{col 37}{space 1}   21.73{col 46}{space 3}0.000{col 54}{space 4}  .553636{col 67}{space 3} .6634145
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}partyrbrstmp {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 2.004324{col 26}{space 2} .1048153{col 37}{space 1}   19.12{col 46}{space 3}0.000{col 54}{space 4}  1.79889{col 67}{space 3} 2.209759
{txt}{space 8}Diff {c |}{col 14}{res}{space 2} .6785336{col 26}{space 2} .0298494{col 37}{space 1}   22.73{col 46}{space 3}0.000{col 54}{space 4} .6200299{col 67}{space 3} .7370373
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}officepers   {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 2.890977{col 26}{space 2} .1530346{col 37}{space 1}   18.89{col 46}{space 3}0.000{col 54}{space 4} 2.591034{col 67}{space 3} 3.190919
{txt}{space 8}Diff {c |}{col 14}{res}{space 2}-.4202195{col 26}{space 2} .0232182{col 37}{space 1}  -18.10{col 46}{space 3}0.000{col 54}{space 4}-.4657263{col 67}{space 3}-.3747127
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}createparty  {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 1.283182{col 26}{space 2} .0690587{col 37}{space 1}   18.58{col 46}{space 3}0.000{col 54}{space 4}  1.14783{col 67}{space 3} 1.418535
{txt}{space 8}Diff {c |}{col 14}{res}{space 2} 1.644761{col 26}{space 2} .0679592{col 37}{space 1}   24.20{col 46}{space 3}0.000{col 54}{space 4} 1.511564{col 67}{space 3} 1.777959
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}milnotrial   {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 1.558655{col 26}{space 2}  .070848{col 37}{space 1}   22.00{col 46}{space 3}0.000{col 54}{space 4} 1.419795{col 67}{space 3} 1.697514
{txt}{space 8}Diff {c |}{col 14}{res}{space 2} .5093505{col 26}{space 2} .0305189{col 37}{space 1}   16.69{col 46}{space 3}0.000{col 54}{space 4} .4495346{col 67}{space 3} .5691664
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}milmerit_p~B {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 1.366218{col 26}{space 2} .0621683{col 37}{space 1}   21.98{col 46}{space 3}0.000{col 54}{space 4} 1.244371{col 67}{space 3} 1.488066
{txt}{space 8}Diff {c |}{col 14}{res}{space 2} .3094893{col 26}{space 2} .0305383{col 37}{space 1}   10.13{col 46}{space 3}0.000{col 54}{space 4} .2496355{col 67}{space 3} .3693432
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}paramil_pers {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 1.111254{col 26}{space 2} .0554924{col 37}{space 1}   20.03{col 46}{space 3}0.000{col 54}{space 4} 1.002491{col 67}{space 3} 1.220017
{txt}{space 8}Diff {c |}{col 14}{res}{space 2} .6777748{col 26}{space 2} .0411037{col 37}{space 1}   16.49{col 46}{space 3}0.000{col 54}{space 4} .5972129{col 67}{space 3} .7583367
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}sectyapp_p~s {txt}{c |}
{space 5}Discrim {c |}{col 14}{res}{space 2} 1.760407{col 26}{space 2} .0783432{col 37}{space 1}   22.47{col 46}{space 3}0.000{col 54}{space 4} 1.606858{col 67}{space 3} 1.913957
{txt}{space 8}Diff {c |}{col 14}{res}{space 2} -.332487{col 26}{space 2} .0270983{col 37}{space 1}  -12.27{col 46}{space 3}0.000{col 54}{space 4}-.3855987{col 67}{space 3}-.2793753
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}.                         estat report $pvars1 $pvars2, byparm sort(b)
{res}
{txt}{col 1}Two-parameter logistic model{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:4,591}
{txt}{col 1}{lalign 14:Log likelihood}{col 15} = {res}{ralign 10:-19904.256}
{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |} Coefficient{col 29}  Std. err.{col 41}      z{col 49}   P>|z|{col 57}     [95% con{col 70}f. interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}Discrim         {txt}{c |}
{space 5}officepers {c |}{col 17}{res}{space 2} 2.890977{col 29}{space 2} .1530346{col 40}{space 1}   18.89{col 49}{space 3}0.000{col 57}{space 4} 2.591034{col 70}{space 3} 3.190919
{txt}{space 2}sectyapp_pers {c |}{col 17}{res}{space 2} 1.760407{col 29}{space 2} .0783432{col 40}{space 1}   22.47{col 49}{space 3}0.000{col 57}{space 4} 1.606858{col 70}{space 3} 1.913957
{txt}{space 1}milmerit_persB {c |}{col 17}{res}{space 2} 1.366218{col 29}{space 2} .0621683{col 40}{space 1}   21.98{col 49}{space 3}0.000{col 57}{space 4} 1.244371{col 70}{space 3} 1.488066
{txt}{space 5}milnotrial {c |}{col 17}{res}{space 2} 1.558655{col 29}{space 2}  .070848{col 40}{space 1}   22.00{col 49}{space 3}0.000{col 57}{space 4} 1.419795{col 70}{space 3} 1.697514
{txt}partyexcom_pers {c |}{col 17}{res}{space 2} 2.131928{col 29}{space 2} .1134983{col 40}{space 1}   18.78{col 49}{space 3}0.000{col 57}{space 4} 1.909476{col 70}{space 3} 2.354381
{txt}{space 3}paramil_pers {c |}{col 17}{res}{space 2} 1.111254{col 29}{space 2} .0554924{col 40}{space 1}   20.03{col 49}{space 3}0.000{col 57}{space 4} 1.002491{col 70}{space 3} 1.220017
{txt}{space 3}partyrbrstmp {c |}{col 17}{res}{space 2} 2.004324{col 29}{space 2} .1048153{col 40}{space 1}   19.12{col 49}{space 3}0.000{col 57}{space 4}  1.79889{col 70}{space 3} 2.209759
{txt}{space 4}createparty {c |}{col 17}{res}{space 2} 1.283182{col 29}{space 2} .0690587{col 40}{space 1}   18.58{col 49}{space 3}0.000{col 57}{space 4}  1.14783{col 70}{space 3} 1.418535
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}Diff            {txt}{c |}
{space 5}officepers {c |}{col 17}{res}{space 2}-.4202195{col 29}{space 2} .0232182{col 40}{space 1}  -18.10{col 49}{space 3}0.000{col 57}{space 4}-.4657263{col 70}{space 3}-.3747127
{txt}{space 2}sectyapp_pers {c |}{col 17}{res}{space 2} -.332487{col 29}{space 2} .0270983{col 40}{space 1}  -12.27{col 49}{space 3}0.000{col 57}{space 4}-.3855987{col 70}{space 3}-.2793753
{txt}{space 1}milmerit_persB {c |}{col 17}{res}{space 2} .3094893{col 29}{space 2} .0305383{col 40}{space 1}   10.13{col 49}{space 3}0.000{col 57}{space 4} .2496355{col 70}{space 3} .3693432
{txt}{space 5}milnotrial {c |}{col 17}{res}{space 2} .5093505{col 29}{space 2} .0305189{col 40}{space 1}   16.69{col 49}{space 3}0.000{col 57}{space 4} .4495346{col 70}{space 3} .5691664
{txt}partyexcom_pers {c |}{col 17}{res}{space 2} .6085253{col 29}{space 2} .0280052{col 40}{space 1}   21.73{col 49}{space 3}0.000{col 57}{space 4}  .553636{col 70}{space 3} .6634145
{txt}{space 3}paramil_pers {c |}{col 17}{res}{space 2} .6777748{col 29}{space 2} .0411037{col 40}{space 1}   16.49{col 49}{space 3}0.000{col 57}{space 4} .5972129{col 70}{space 3} .7583367
{txt}{space 3}partyrbrstmp {c |}{col 17}{res}{space 2} .6785336{col 29}{space 2} .0298494{col 40}{space 1}   22.73{col 49}{space 3}0.000{col 57}{space 4} .6200299{col 70}{space 3} .7370373
{txt}{space 4}createparty {c |}{col 17}{res}{space 2} 1.644761{col 29}{space 2} .0679592{col 40}{space 1}   24.20{col 49}{space 3}0.000{col 57}{space 4} 1.511564{col 70}{space 3} 1.777959
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                         predict pers_2pl, latent se(pers_se_2pl)
{txt}(option {bf:ebmeans} assumed)
{res}{txt}(using 7 quadrature points)

{com}.                         
.                         * IRT plots *
.                         irtgraph iif  (sectyapp_pers,lcolor(blue)) (milmerit_pers,lcolor(red)) (milnotrial,lcolor(green)) ///
>                         (paramil_pers,lcolor(cyan)),legend(col(2) pos(6)) title(Security & military items) saving(t2,replace) ///
>                         ylab(,glcolor(gs15)) xtitle("Personalism ({c -(}&theta{c )-})")
{res}{txt}{p 0 4 2}
(file {bf}
t2.gph{rm}
not found)
{p_end}
{res}{txt}file {bf:t2.gph} saved

{com}.                         irtgraph iif  (officepers,lcolor(blue)) (partyexcom_pers,lcolor(red)) (partyrbr,lcolor(green)) ///
>                         (createparty,lcolor(cyan)),legend(col(2) pos(6))  title(Party & personnel items) saving(t1,replace) ///
>                         ylab(,glcolor(gs15)) xtitle("Personalism ({c -(}&theta{c )-})")
{res}{txt}{p 0 4 2}
(file {bf}
t1.gph{rm}
not found)
{p_end}
{res}{txt}file {bf:t1.gph} saved

{com}.                         gr combine t1.gph t2.gph, col(2)   ysize(5.5) xsize(9)  ycommon
{res}{txt}
{com}.                         erase t1.gph
{txt}
{com}.                         erase t2.gph
{txt}
{com}.                         
.                         * Standardize, rescale *
.                         qui sum pers_2pl
{txt}
{com}.                         gen xpers = (pers_2pl+abs(r(min))) / (r(max) - r(min))
{txt}
{com}.                         hist xpers, bin(50)
{txt}(bin={res}50{txt}, start={res}0{txt}, width={res}.02{txt})
{res}{txt}
{com}.                         
.                         * Variance decomposition *
.                         qui xtset gwf_leaderid year
{txt}
{com}.                         qui xtsum `i'
{txt}
{com}.                         qui scalar sdb = r(sd_b)
{txt}
{com}.                         qui scalar sdw = r(sd_w)
{txt}
{com}.                         qui scalar vart= sdb + sdw
{txt}
{com}.                         qui scalar varr = sdw / vart
{txt}
{com}.                         scalar list sdw
{txt}       sdw = {res} .11323727
{txt}
{com}.                         scalar list varr
{txt}      varr = {res} .31118908
{txt}
{com}.                         
.                         replace ccode=679 if ccode==678
{txt}(65 real changes made)

{com}.                         
.                         save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\GWF_personalizationIRT.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\GWF_personalizationIRT.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\GWF_personalizationIRT.dta", keepusing(xpers)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           8,940
{txt}{col 9}from master{col 30}{res}           8,806{txt}  (_merge==1)
{col 9}from using{col 30}{res}             134{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           4,457{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(134 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. * Excluded Ethnic Groups: EPR data, RFE Release 2.1 - Original data source: https://growup.ethz.ch/rfe
. import delimited "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\eprdata.csv", clear
{res}{txt}(encoding automatically selected: ISO-8859-1)
{text}(24 vars, 10,665 obs)

{com}. rename countries_gwid ccode
{res}{txt}
{com}. replace ccode=679 if ccode==678
{txt}(75 real changes made)

{com}. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\eprdata.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\eprdata.dta{rm}
saved
{p_end}

{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\eprdata.dta", keepusing(lexclpop)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           4,118
{txt}{col 9}from master{col 30}{res}           3,358{txt}  (_merge==1)
{col 9}from using{col 30}{res}             760{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           9,905{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(760 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. * Counterbalancing: Pilster & Bohmelt - Original Data source: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/JCVR1H
. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Coup-Proofing 1970-2022.dta", keepusing(effective)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           5,642
{txt}{col 9}from master{col 30}{res}           4,801{txt}  (_merge==1)
{col 9}from using{col 30}{res}             841{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           8,462{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(841 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. * Latent Protest measure: Escribà-Folch, Meseguer, and Wright 2018 - Original data source: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/TVZQG6
. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\latentdata.dta", keepusing(mean3 mean5)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           4,983
{txt}{col 9}from master{col 30}{res}           4,982{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           8,281{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(1 observation deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. * Neighbour protest: Computed following Escribà-Folch et al. 2018 (with their protest data) using C-shapes distances
. do "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\neighbourProtest.do"
{txt}
{com}. * Creating neighborhood Protest variable
. insheet using "https://icr.ethz.ch/data/cshapes/Dyadic_distance_data/cshapes_2.0_dist_COW.csv", clear
{txt}(6 vars, 1,918,461 obs)

{com}. 
. drop if year<1955 | year>2010
{txt}(546,104 observations deleted)

{com}. drop if ccode1==ccode2
{txt}(8,563 observations deleted)

{com}. 
. replace ccode1=255 if ccode1==260
{txt}(4,691 real changes made)

{com}. replace ccode2=255 if ccode2==260
{txt}(4,691 real changes made)

{com}. replace ccode1=315 if ccode1==316
{txt}(3,399 real changes made)

{com}. replace ccode2=315 if ccode2==316
{txt}(3,399 real changes made)

{com}. replace ccode1=679 if ccode1==678
{txt}(4,772 real changes made)

{com}. replace ccode2=679 if ccode2==678
{txt}(4,772 real changes made)

{com}. 
. merge m:1 ccode2 year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\latentdata.dta", keepusing(mean3 mean5 mean7)
{res}{txt}{p 0 7 2}
(variable
{bf:ccode2} was {bf:int}, now {bf:float} to accommodate using data's values)
{p_end}

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}          79,584
{txt}{col 9}from master{col 30}{res}          79,415{txt}  (_merge==1)
{col 9}from using{col 30}{res}             169{txt}  (_merge==2)

{col 5}Matched{col 30}{res}       1,284,379{txt}  (_merge==3)
{col 5}{hline 41}

{com}. 
. drop if _merge==2
{txt}(169 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. sort ccode1 year ccode2
{txt}
{com}. 
. * as in Escriba-Folch, Meseguer, Wright 2018, define neighborhood as Capital Distance <=4000km
. drop if capdist>4000
{txt}(1,054,318 observations deleted)

{com}. 
. * Collapse mean3, mean5, and mean7 by ccode1 and year, generate averages
. collapse (mean) nbr_mean3=mean3 nbr_mean5=mean5 nbr_mean7=mean7, by(ccode1 year)
{res}{txt}
{com}. 
. rename ccode1 ccode
{res}{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\neighbor_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\neighbor_protest.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. merge 1:1 ccode year using "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\neighbor_protest.dta", keepusing(nbr_mean3 nbr_mean5)
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}           4,705
{txt}{col 9}from master{col 30}{res}           4,705{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}Matched{col 30}{res}           8,558{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if _merge==2
{txt}(0 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
{txt}end of do-file

{com}. do "C:\Users\mariu\AppData\Local\Temp\STD25d4_000000.tmp"
{txt}
{com}. 
. 
. ******************************************
. *** Label variables to clarify meaning ***
. ******************************************
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", clear
{txt}
{com}. 
. rename urbanpopulationoftotalspurbtotli urbanpop
{res}{txt}
{com}. 
. label variable secretpol_revised "Secret Police Dummy"
{txt}
{com}. label variable pop "Population Size (WB + Gleditsch)"
{txt}
{com}. label variable gdp_pc "GDP per capita (WB + Gleditsch)"
{txt}
{com}. label variable intrastate "Intraste Conflict (UCDP)"
{txt}
{com}. label variable polity2 "Polity2 score"
{txt}
{com}. label variable attempt "Coup attempt (Powell & Thyne)"
{txt}
{com}. label variable theta_mean "Latent Human Rights Score (Fariss)"
{txt}
{com}. label variable physint "CIRI Physcial Integrity Rights Score"
{txt}
{com}. label variable disap "CIRI Disappearence Score"
{txt}
{com}. label variable kill "CIRI Extrajudicial Killing Score"
{txt}
{com}. label variable polpris "CIRI Political Imprisonment Score"
{txt}
{com}. label variable tort "CIRI Torture Score"
{txt}
{com}. label variable v2terr "Territorial Control (V-Dem)"
{txt}
{com}. label variable solschdum "Source of Leader Support Change Dummy (CHISOLS)"
{txt}
{com}. label variable l12gr "Economic Growth (WB)"
{txt}
{com}. label variable xpers "Latent Personalization (GWF)"
{txt}
{com}. label variable lexclpop "MEG population as fraction of ethnically relevant population (EPR)"
{txt}
{com}. label variable effectivenumber "Effective Number of Military Orgs (Pilster & Bohmelt)"
{txt}
{com}. label variable mean3 "Latent Protest (Poisson IRT)"
{txt}
{com}. label variable mean5 "Latent Protest (NB IRT)"
{txt}
{com}. label variable nbr_mean3 "Latent Neighbor Protest (Poisson IRT)"
{txt}
{com}. label variable nbr_mean5 "Latent Neighbor Protest (NB IRT)"
{txt}
{com}. 
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Source data\Temp\Reconstruct_secpol_protest.dta{rm}
saved
{p_end}

{com}.      
. save "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Replication_secpol_protest.dta", replace
{txt}{p 0 4 2}
file {bf}
C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Replication_secpol_protest.dta{rm}
saved
{p_end}

{com}. 
. 
{txt}end of do-file

{com}. do "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Replication_Analysis_SecPolice_Protest.do"
{txt}
{com}. *************************************************************************
. ***** Replication Code for:                                                                              ****
. **** Choulis, Ioannis, Abel Escribà-Folch, & Marius Mehrl                       ****
. **** Preventing Dissent: Secret Police And Protests In Dictatorships ****
. **** The Journal of Politics                                                                             ****
. **** Date of Code: 15 August 2023                                                                        ****
. *************************************************************************
. 
. 
. ***************************************************************
. ***************************************************************
. **** Analysis reported in paper and supplementary material ****
. ***************************************************************
. ***************************************************************
. 
. * PLEASE NOTE: For replication, please change file paths to reflect where you have stored this code and data. Please also ensure to use the following folder structure:
. * Folder 1 (highest level) - Files: Replication_Analysis_SecPolice_Protest.do; Replication_Merge_SecPolice_Protest.do; Replication_secpol_protest; Folder: "Source data"
. * Folder 2 (Source data): Files: All remaining .dta, .csv, .xls, and .do files EXCEPT 
. * 1: 08_15_23_0925am_wep.csv and varlabel.do, these should be in folder "WB pop and GDP pc" within Source data
. * 2: GWF-personalism-measure.do and GWF.dta, these should be in folder "GWF Personalization" within Source data
. 
. * Please also create an empty folder "Temp" within Source data
. 
. * Non-standard Stata packages required for this code: btscs.ado, reghdfe, coefplot, did_imputation, eventstudyinteract, sensemakr
. 
. 
. 
. *************
. * load data *
. *************
. * Initial Dataset
. *use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\SecPolice_ProtestOpress.dta", clear
. 
. * Re-constructed Dataset
. use "C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Replication_secpol_protest.dta", clear
{txt}
{com}. 
. ********************************
. * final variable constructions *
. ********************************
. sum mean5 

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}mean5 {c |}{res}      8,281   -.1019097    1.457965   -5.93825   3.751842
{txt}
{com}. gen Protest = (mean5-r(mean))/(r(sd))  /* Standardized Protest variable */
{txt}(4,982 missing values generated)

{com}. sum nbr_mean5

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}nbr_mean5 {c |}{res}      8,558   -.0900025    .5207949  -1.507945   1.889464
{txt}
{com}. gen nbr_protest = (nbr_mean5-r(mean))/(r(sd))
{txt}(4,705 missing values generated)

{com}.         
. gen ln_pop = ln(pop+1)
{txt}(1,155 missing values generated)

{com}. gen ln_gdppc = ln(gdp_pc+1)
{txt}(2,097 missing values generated)

{com}. gen ln_counterb = ln(effective+1)
{txt}(6,116 missing values generated)

{com}. 
. label variable Protest "Latent Protest (NB IRT, standardized)"
{txt}
{com}. label variable nbr_protest "Latent Neighbor Protest (NB IRT, standardized)"
{txt}
{com}. label variable ln_pop "Population size, logged"
{txt}
{com}. label variable ln_gdppc "GDP per capita, logged"
{txt}
{com}. label variable ln_counterb "effective Number of Military Orgs, logged"
{txt}
{com}. 
. xtset ccode year
{res}
{col 1}{txt:Panel variable: }{res:ccode}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:year}{txt:, }{res:{bind:1950}}{txt: to }{res:{bind:2018}}{p_end}
{txt}{col 10}Delta: {res}1 unit
{txt}
{com}. 
. replace Region="Americas" if Region=="na" | Region=="lac"
{txt}variable {bf}{res}Region{sf}{txt} was {bf}{res}str4{sf}{txt} now {bf}{res}str8{sf}
{txt}(1,505 real changes made)

{com}. replace Region="South-East Asia and Pacific" if Region=="eap" | Region=="sa"
{txt}variable {bf}{res}Region{sf}{txt} was {bf}{res}str8{sf}{txt} now {bf}{res}str27{sf}
{txt}(1,677 real changes made)

{com}. replace Region="Europe and Central Asia" if Region=="eca"
{txt}(2,417 real changes made)

{com}. replace Region ="MENA" if Region=="mena"
{txt}(886 real changes made)

{com}. replace Region ="Sub-Saharan Africa" if Region=="ssa"
{txt}(2,060 real changes made)

{com}. 
. gen region=.
{txt}(13,263 missing values generated)

{com}. replace region=1 if Region=="Americas"
{txt}(1,505 real changes made)

{com}. replace region=2 if Region=="South-East Asia and Pacific"
{txt}(1,677 real changes made)

{com}. replace region=3 if Region=="Europe and Central Asia"
{txt}(2,417 real changes made)

{com}. replace region=4 if Region=="MENA"
{txt}(886 real changes made)

{com}. replace region=5 if Region=="Sub-Saharan Africa"
{txt}(2,060 real changes made)

{com}. by ccode: egen region2=max(region)
{txt}(200 missing values generated)

{com}. replace region2=3 if ccode==348
{txt}(13 real changes made)

{com}. replace region2=2 if ccode==817
{txt}(26 real changes made)

{com}. replace region=region2 
{txt}(4,557 real changes made)

{com}. drop region2
{txt}
{com}. label variable region "Region (numeric)"
{txt}
{com}. 
. * Construct regime cases  from chisols data
. gen regimecase=(ccode*1000)+year if l.solsch==1
{txt}(12,479 missing values generated)

{com}. by ccode: replace regimecase=regimecase[_n-1] if regimecase==.
{txt}(5,145 real changes made)

{com}. replace regimecase=ccode if regimecase==. &  solsch!=.
{txt}(3,513 real changes made)

{com}. label variable regimecase "Regime Case"
{txt}
{com}. 
. * Construct time since events covariates for robustness checks and Correlates of secret Police Existence
. btscs secretpol_revised year ccode, gen(ts_secpol)
{txt}
{com}. btscs attempt year ccode, gen(ts_coup)
{txt}
{com}. 
. gen democ=0 if polity2!=.
{txt}(3,777 missing values generated)

{com}. replace democ=1 if polity2>=7 & polity2!=.
{txt}(3,268 real changes made)

{com}. btscs democ year ccode, gen(ts_democ)
{txt}
{com}. replace ts_democ=ts_democ+1 if democ==0
{txt}(6,218 real changes made)

{com}. by ccode: gen obsnum=[_n] if ts_democ!=.
{txt}(3,777 missing values generated)

{com}. gen everdemoc=1 if ts_democ<obsnum
{txt}(6,320 missing values generated)

{com}. replace everdemoc=0 if ts_democ==obsnum & ts_democ!=.
{txt}(2,543 real changes made)

{com}. drop obsnum democ
{txt}
{com}. 
. label variable ts_secpol "Time since last secret police instance"
{txt}
{com}. label variable ts_coup "Time since last coup attempt"
{txt}
{com}. label variable ts_democ"Time since last democracy instance"
{txt}
{com}. label variable everdemoc "Previously democratic"
{txt}
{com}. 
. * Some analyses require hardcoded lagged variables
. gen lag_ln_pop=l.ln_pop
{txt}(1,355 missing values generated)

{com}. gen lag_ln_gdppc=l.ln_gdppc
{txt}(2,289 missing values generated)

{com}. gen lag_lexclpop=l.lexclpop
{txt}(3,532 missing values generated)

{com}. 
. 
. * Define estimation sample
. quietly reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc nbr_protest l.lexclpop l12gr intrastate attempt, absorb(ccode year) vce(cluster ccode) nocons
{txt}
{com}. gen sample=e(sample) & year>=1960
{txt}
{com}. 
. 
. 
. ************************
. *** Figures in Paper ***
. ************************
. * Figure 1 Paper
. preserve
{txt}
{com}. gen case=1 if secretpol_revised!=.
{txt}(7,684 missing values generated)

{com}. collapse (sum) secretpol_revised case, by(region year)
{res}{txt}
{com}. gen share=secretpol_revised/case
{txt}(69 missing values generated)

{com}. *twoway bar  share region, scheme(plotplain) fcolor(grey)
. *graph bar share, over(region, gap(1) relabel(1 "Americas" 2 "South-East Asia & Pacific" 3 "Europe & Central Asia" 4 "MENA" 5 "Sub-Saharan Africa")) scheme(plotplain) ytitle("Secret Police (% of country-years)")
. graph bar share, over(region, gap(1) relabel(1 "Americas" 2 `" "South-East Asia" "& Pacific" "' 3 `" "Europe &" "Central Asia" "' 4 "MENA" 5 "Sub-Saharan Africa") sort(1) descending ) scheme(plotplain) ytitle("Secret Police (% of country-years)") ylabel(#9)
{res}{txt}
{com}. restore
{txt}
{com}. 
. * Figure 2 Paper
. reghdfe Protest secretpol_ if sample==1, absorb(ccode year) vce(cluster ccode) nocons residuals
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    110{txt}){col 67}= {res}      7.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0073
{txt}{col 51}R-squared{col 67}= {res}    0.7887
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7778
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0200
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4263

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2} -.282512{col 31}{space 2} .1033215{col 42}{space 1}   -2.73{col 51}{space 3}0.007{col 59}{space 4}-.4872709{col 72}{space 3}-.0777532
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. margins, dydx(secretpol_) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,252}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2} -.282512{col 31}{space 2} .1033215{col 42}{space 1}   -2.73{col 51}{space 3}0.006{col 59}{space 4}-.4524607{col 72}{space 3}-.1125634
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store one
{txt}
{com}. reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop if sample==1, absorb(ccode year) vce(cluster ccode) nocons residuals
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   5{txt},{res}    110{txt}){col 67}= {res}      2.59
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0297
{txt}{col 51}R-squared{col 67}= {res}    0.7904
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7793
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0277
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4249

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2689804{col 31}{space 2} .1034567{col 42}{space 1}   -2.60{col 51}{space 3}0.011{col 59}{space 4}-.4740074{col 72}{space 3}-.0639534
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}  .225204{col 31}{space 2} .2637483{col 42}{space 1}    0.85{col 51}{space 3}0.395{col 59}{space 4}-.2974833{col 72}{space 3} .7478912
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0365772{col 31}{space 2} .0692872{col 42}{space 1}   -0.53{col 51}{space 3}0.599{col 59}{space 4}-.1738883{col 72}{space 3} .1007338
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0041564{col 31}{space 2} .0025674{col 42}{space 1}   -1.62{col 51}{space 3}0.108{col 59}{space 4}-.0092444{col 72}{space 3} .0009315
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}   .02404{col 31}{space 2} .1139609{col 42}{space 1}    0.21{col 51}{space 3}0.833{col 59}{space 4}-.2018038{col 72}{space 3} .2498839
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. margins, dydx(secretpol_) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,252}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2689804{col 31}{space 2} .1034567{col 42}{space 1}   -2.60{col 51}{space 3}0.009{col 59}{space 4}-.4391516{col 72}{space 3}-.0988092
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store two
{txt}
{com}. reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt if sample==1, absorb(ccode year) vce(cluster ccode) nocons residuals
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    110{txt}){col 67}= {res}      3.90
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.7952
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7841
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0500
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4202

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2759158{col 31}{space 2} .0963768{col 42}{space 1}   -2.86{col 51}{space 3}0.005{col 59}{space 4} -.466912{col 72}{space 3}-.0849196
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3035898{col 31}{space 2} .2624257{col 42}{space 1}    1.16{col 51}{space 3}0.250{col 59}{space 4}-.2164763{col 72}{space 3} .8236559
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0288722{col 31}{space 2} .0706899{col 42}{space 1}   -0.41{col 51}{space 3}0.684{col 59}{space 4}-.1689629{col 72}{space 3} .1112185
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0036449{col 31}{space 2} .0025206{col 42}{space 1}   -1.45{col 51}{space 3}0.151{col 59}{space 4}-.0086402{col 72}{space 3} .0013503
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0249911{col 31}{space 2} .1001768{col 42}{space 1}    0.25{col 51}{space 3}0.803{col 59}{space 4}-.1735358{col 72}{space 3} .2235179
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} -.084219{col 31}{space 2} .0734618{col 42}{space 1}   -1.15{col 51}{space 3}0.254{col 59}{space 4} -.229803{col 72}{space 3}  .061365
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1638862{col 31}{space 2} .0529567{col 42}{space 1}    3.09{col 51}{space 3}0.002{col 59}{space 4} .0589384{col 72}{space 3}  .268834
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1086513{col 31}{space 2} .0388738{col 42}{space 1}    2.79{col 51}{space 3}0.006{col 59}{space 4} .0316126{col 72}{space 3}   .18569
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. margins, dydx(secretpol_) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,252}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2759158{col 31}{space 2} .0963768{col 42}{space 1}   -2.86{col 51}{space 3}0.004{col 59}{space 4}-.4344415{col 72}{space 3}-.1173901
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store three
{txt}
{com}. 
. reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, absorb(ccode) vce(cluster ccode) nocons residuals
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 1 HDFE group{col 51}F({res}   8{txt},{res}    110{txt}){col 67}= {res}     11.40
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.7814
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7732
{txt}{col 51}Within R-sq.{col 67}= {res}    0.2225
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4308

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2716322{col 31}{space 2} .0910002{col 42}{space 1}   -2.98{col 51}{space 3}0.003{col 59}{space 4}-.4519732{col 72}{space 3}-.0912912
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .6411338{col 31}{space 2} .1058647{col 42}{space 1}    6.06{col 51}{space 3}0.000{col 59}{space 4} .4313348{col 72}{space 3} .8509329
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0180603{col 31}{space 2} .0790452{col 42}{space 1}   -0.23{col 51}{space 3}0.820{col 59}{space 4}-.1747092{col 72}{space 3} .1385887
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0040943{col 31}{space 2} .0025197{col 42}{space 1}   -1.62{col 51}{space 3}0.107{col 59}{space 4}-.0090877{col 72}{space 3} .0008991
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0127851{col 31}{space 2} .1056494{col 42}{space 1}   -0.12{col 51}{space 3}0.904{col 59}{space 4}-.2221574{col 72}{space 3} .1965872
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .1088154{col 31}{space 2} .0652861{col 42}{space 1}    1.67{col 51}{space 3}0.098{col 59}{space 4}-.0205663{col 72}{space 3}  .238197
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}  .185145{col 31}{space 2} .0532745{col 42}{space 1}    3.48{col 51}{space 3}0.001{col 59}{space 4} .0795674{col 72}{space 3} .2907226
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1140556{col 31}{space 2} .0424653{col 42}{space 1}    2.69{col 51}{space 3}0.008{col 59}{space 4} .0298994{col 72}{space 3} .1982118
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. margins, dydx(secretpol_) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,252}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2716322{col 31}{space 2} .0910002{col 42}{space 1}   -2.98{col 51}{space 3}0.003{col 59}{space 4}-.4213142{col 72}{space 3}-.1219502
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store eight
{txt}
{com}. xtreg Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt i.year, re vce(cluster ccode)
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     3,254
{txt}Group variable: {res}ccode                           {txt}Number of groups  = {res}       113

{txt}R-squared:                                      Obs per group:
     Within  = {res}0.2688                                         {txt}min = {res}         1
{txt}     Between = {res}0.3094                                         {txt}avg = {res}      28.8
{txt}     Overall = {res}0.3210                                         {txt}max = {res}        49

                                                {txt}Wald chi2({res}56{txt})     =  {res}   417.20
{txt}corr(u_i, X) = {res}0{txt} (assumed)                      Prob > chi2       =     {res}0.0000

{txt}{ralign 83:(Std. err. adjusted for {res:113} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2523664{col 31}{space 2} .0925719{col 42}{space 1}   -2.73{col 51}{space 3}0.006{col 59}{space 4}-.4338041{col 72}{space 3}-.0709288
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3686223{col 31}{space 2} .0524434{col 42}{space 1}    7.03{col 51}{space 3}0.000{col 59}{space 4} .2658352{col 72}{space 3} .4714094
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0264139{col 31}{space 2} .0606034{col 42}{space 1}    0.44{col 51}{space 3}0.663{col 59}{space 4}-.0923667{col 72}{space 3} .1451944
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0041478{col 31}{space 2} .0025371{col 42}{space 1}   -1.63{col 51}{space 3}0.102{col 59}{space 4}-.0091204{col 72}{space 3} .0008248
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0015278{col 31}{space 2} .1017878{col 42}{space 1}    0.02{col 51}{space 3}0.988{col 59}{space 4}-.1979726{col 72}{space 3} .2010283
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} -.032951{col 31}{space 2} .0675996{col 42}{space 1}   -0.49{col 51}{space 3}0.626{col 59}{space 4}-.1654438{col 72}{space 3} .0995417
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1646711{col 31}{space 2}  .052955{col 42}{space 1}    3.11{col 51}{space 3}0.002{col 59}{space 4} .0608812{col 72}{space 3}  .268461
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1149479{col 31}{space 2} .0395433{col 42}{space 1}    2.91{col 51}{space 3}0.004{col 59}{space 4} .0374444{col 72}{space 3} .1924514
{txt}{space 17} {c |}
{space 13}year {c |}
{space 12}1963  {c |}{col 19}{res}{space 2}-.0129446{col 31}{space 2} .0343678{col 42}{space 1}   -0.38{col 51}{space 3}0.706{col 59}{space 4}-.0803042{col 72}{space 3}  .054415
{txt}{space 12}1964  {c |}{col 19}{res}{space 2}-.0245172{col 31}{space 2} .0450601{col 42}{space 1}   -0.54{col 51}{space 3}0.586{col 59}{space 4}-.1128334{col 72}{space 3} .0637989
{txt}{space 12}1965  {c |}{col 19}{res}{space 2}-.1000249{col 31}{space 2} .0623411{col 42}{space 1}   -1.60{col 51}{space 3}0.109{col 59}{space 4}-.2222111{col 72}{space 3} .0221614
{txt}{space 12}1966  {c |}{col 19}{res}{space 2}-.0988461{col 31}{space 2} .0901798{col 42}{space 1}   -1.10{col 51}{space 3}0.273{col 59}{space 4}-.2755953{col 72}{space 3} .0779031
{txt}{space 12}1967  {c |}{col 19}{res}{space 2}-.1257951{col 31}{space 2} .1012876{col 42}{space 1}   -1.24{col 51}{space 3}0.214{col 59}{space 4} -.324315{col 72}{space 3} .0727249
{txt}{space 12}1968  {c |}{col 19}{res}{space 2}-.1645025{col 31}{space 2} .1090954{col 42}{space 1}   -1.51{col 51}{space 3}0.132{col 59}{space 4}-.3783256{col 72}{space 3} .0493205
{txt}{space 12}1969  {c |}{col 19}{res}{space 2}-.2014594{col 31}{space 2} .1160463{col 42}{space 1}   -1.74{col 51}{space 3}0.083{col 59}{space 4} -.428906{col 72}{space 3} .0259872
{txt}{space 12}1970  {c |}{col 19}{res}{space 2}-.2105851{col 31}{space 2} .1183487{col 42}{space 1}   -1.78{col 51}{space 3}0.075{col 59}{space 4}-.4425444{col 72}{space 3} .0213741
{txt}{space 12}1971  {c |}{col 19}{res}{space 2}-.2584173{col 31}{space 2} .1236574{col 42}{space 1}   -2.09{col 51}{space 3}0.037{col 59}{space 4}-.5007813{col 72}{space 3}-.0160533
{txt}{space 12}1972  {c |}{col 19}{res}{space 2}-.2661626{col 31}{space 2} .1317163{col 42}{space 1}   -2.02{col 51}{space 3}0.043{col 59}{space 4}-.5243219{col 72}{space 3}-.0080034
{txt}{space 12}1973  {c |}{col 19}{res}{space 2}-.2854002{col 31}{space 2} .1333157{col 42}{space 1}   -2.14{col 51}{space 3}0.032{col 59}{space 4}-.5466942{col 72}{space 3}-.0241061
{txt}{space 12}1974  {c |}{col 19}{res}{space 2}-.3018144{col 31}{space 2}  .131833{col 42}{space 1}   -2.29{col 51}{space 3}0.022{col 59}{space 4}-.5602023{col 72}{space 3}-.0434266
{txt}{space 12}1975  {c |}{col 19}{res}{space 2}-.3057474{col 31}{space 2} .1311591{col 42}{space 1}   -2.33{col 51}{space 3}0.020{col 59}{space 4}-.5628145{col 72}{space 3}-.0486803
{txt}{space 12}1976  {c |}{col 19}{res}{space 2} -.292669{col 31}{space 2}  .129987{col 42}{space 1}   -2.25{col 51}{space 3}0.024{col 59}{space 4}-.5474388{col 72}{space 3}-.0378992
{txt}{space 12}1977  {c |}{col 19}{res}{space 2}  -.24664{col 31}{space 2} .1266641{col 42}{space 1}   -1.95{col 51}{space 3}0.052{col 59}{space 4}-.4948971{col 72}{space 3} .0016171
{txt}{space 12}1978  {c |}{col 19}{res}{space 2}-.1963883{col 31}{space 2} .1261917{col 42}{space 1}   -1.56{col 51}{space 3}0.120{col 59}{space 4}-.4437195{col 72}{space 3} .0509429
{txt}{space 12}1979  {c |}{col 19}{res}{space 2}-.1582265{col 31}{space 2} .1276353{col 42}{space 1}   -1.24{col 51}{space 3}0.215{col 59}{space 4} -.408387{col 72}{space 3}  .091934
{txt}{space 12}1980  {c |}{col 19}{res}{space 2}-.1456617{col 31}{space 2}  .129851{col 42}{space 1}   -1.12{col 51}{space 3}0.262{col 59}{space 4} -.400165{col 72}{space 3} .1088417
{txt}{space 12}1981  {c |}{col 19}{res}{space 2}-.1307921{col 31}{space 2} .1288927{col 42}{space 1}   -1.01{col 51}{space 3}0.310{col 59}{space 4}-.3834173{col 72}{space 3}  .121833
{txt}{space 12}1982  {c |}{col 19}{res}{space 2}-.1423058{col 31}{space 2} .1307085{col 42}{space 1}   -1.09{col 51}{space 3}0.276{col 59}{space 4}-.3984898{col 72}{space 3} .1138782
{txt}{space 12}1983  {c |}{col 19}{res}{space 2}-.1298808{col 31}{space 2} .1329357{col 42}{space 1}   -0.98{col 51}{space 3}0.329{col 59}{space 4}  -.39043{col 72}{space 3} .1306684
{txt}{space 12}1984  {c |}{col 19}{res}{space 2}-.1341499{col 31}{space 2} .1322754{col 42}{space 1}   -1.01{col 51}{space 3}0.311{col 59}{space 4}-.3934048{col 72}{space 3} .1251051
{txt}{space 12}1985  {c |}{col 19}{res}{space 2}-.1326786{col 31}{space 2} .1315653{col 42}{space 1}   -1.01{col 51}{space 3}0.313{col 59}{space 4}-.3905417{col 72}{space 3} .1251846
{txt}{space 12}1986  {c |}{col 19}{res}{space 2}-.1084988{col 31}{space 2} .1291744{col 42}{space 1}   -0.84{col 51}{space 3}0.401{col 59}{space 4}-.3616759{col 72}{space 3} .1446783
{txt}{space 12}1987  {c |}{col 19}{res}{space 2}-.0487767{col 31}{space 2} .1269105{col 42}{space 1}   -0.38{col 51}{space 3}0.701{col 59}{space 4}-.2975168{col 72}{space 3} .1999634
{txt}{space 12}1988  {c |}{col 19}{res}{space 2} .0404879{col 31}{space 2}  .125586{col 42}{space 1}    0.32{col 51}{space 3}0.747{col 59}{space 4}-.2056562{col 72}{space 3} .2866319
{txt}{space 12}1989  {c |}{col 19}{res}{space 2} .1282228{col 31}{space 2} .1239958{col 42}{space 1}    1.03{col 51}{space 3}0.301{col 59}{space 4}-.1148045{col 72}{space 3} .3712501
{txt}{space 12}1990  {c |}{col 19}{res}{space 2} .1878587{col 31}{space 2} .1255415{col 42}{space 1}    1.50{col 51}{space 3}0.135{col 59}{space 4} -.058198{col 72}{space 3} .4339155
{txt}{space 12}1991  {c |}{col 19}{res}{space 2}  .248476{col 31}{space 2} .1253502{col 42}{space 1}    1.98{col 51}{space 3}0.047{col 59}{space 4} .0027942{col 72}{space 3} .4941578
{txt}{space 12}1992  {c |}{col 19}{res}{space 2} .2345727{col 31}{space 2} .1209091{col 42}{space 1}    1.94{col 51}{space 3}0.052{col 59}{space 4}-.0024048{col 72}{space 3} .4715502
{txt}{space 12}1993  {c |}{col 19}{res}{space 2} .2119349{col 31}{space 2} .1234366{col 42}{space 1}    1.72{col 51}{space 3}0.086{col 59}{space 4}-.0299963{col 72}{space 3} .4538661
{txt}{space 12}1994  {c |}{col 19}{res}{space 2} .1794762{col 31}{space 2} .1234897{col 42}{space 1}    1.45{col 51}{space 3}0.146{col 59}{space 4}-.0625591{col 72}{space 3} .4215115
{txt}{space 12}1995  {c |}{col 19}{res}{space 2}  .175004{col 31}{space 2} .1218751{col 42}{space 1}    1.44{col 51}{space 3}0.151{col 59}{space 4}-.0638669{col 72}{space 3} .4138748
{txt}{space 12}1996  {c |}{col 19}{res}{space 2}  .187482{col 31}{space 2}  .124644{col 42}{space 1}    1.50{col 51}{space 3}0.133{col 59}{space 4}-.0568157{col 72}{space 3} .4317797
{txt}{space 12}1997  {c |}{col 19}{res}{space 2} .2034544{col 31}{space 2} .1251436{col 42}{space 1}    1.63{col 51}{space 3}0.104{col 59}{space 4}-.0418225{col 72}{space 3} .4487313
{txt}{space 12}1998  {c |}{col 19}{res}{space 2} .2235653{col 31}{space 2} .1261417{col 42}{space 1}    1.77{col 51}{space 3}0.076{col 59}{space 4}-.0236679{col 72}{space 3} .4707985
{txt}{space 12}1999  {c |}{col 19}{res}{space 2} .1847029{col 31}{space 2} .1287782{col 42}{space 1}    1.43{col 51}{space 3}0.151{col 59}{space 4}-.0676976{col 72}{space 3} .4371035
{txt}{space 12}2000  {c |}{col 19}{res}{space 2} .1621416{col 31}{space 2} .1289977{col 42}{space 1}    1.26{col 51}{space 3}0.209{col 59}{space 4}-.0906893{col 72}{space 3} .4149724
{txt}{space 12}2001  {c |}{col 19}{res}{space 2} .1074975{col 31}{space 2} .1332863{col 42}{space 1}    0.81{col 51}{space 3}0.420{col 59}{space 4}-.1537389{col 72}{space 3} .3687338
{txt}{space 12}2002  {c |}{col 19}{res}{space 2} .1125704{col 31}{space 2} .1397167{col 42}{space 1}    0.81{col 51}{space 3}0.420{col 59}{space 4}-.1612694{col 72}{space 3} .3864101
{txt}{space 12}2003  {c |}{col 19}{res}{space 2} .0890689{col 31}{space 2} .1432782{col 42}{space 1}    0.62{col 51}{space 3}0.534{col 59}{space 4}-.1917512{col 72}{space 3}  .369889
{txt}{space 12}2004  {c |}{col 19}{res}{space 2} .0865581{col 31}{space 2} .1463341{col 42}{space 1}    0.59{col 51}{space 3}0.554{col 59}{space 4}-.2002515{col 72}{space 3} .3733677
{txt}{space 12}2005  {c |}{col 19}{res}{space 2} .0969741{col 31}{space 2} .1529463{col 42}{space 1}    0.63{col 51}{space 3}0.526{col 59}{space 4}-.2027951{col 72}{space 3} .3967434
{txt}{space 12}2006  {c |}{col 19}{res}{space 2} .0371322{col 31}{space 2}  .156388{col 42}{space 1}    0.24{col 51}{space 3}0.812{col 59}{space 4}-.2693826{col 72}{space 3}  .343647
{txt}{space 12}2007  {c |}{col 19}{res}{space 2} .0362112{col 31}{space 2}  .160168{col 42}{space 1}    0.23{col 51}{space 3}0.821{col 59}{space 4}-.2777123{col 72}{space 3} .3501347
{txt}{space 12}2008  {c |}{col 19}{res}{space 2} .0246074{col 31}{space 2} .1640876{col 42}{space 1}    0.15{col 51}{space 3}0.881{col 59}{space 4}-.2969983{col 72}{space 3}  .346213
{txt}{space 12}2009  {c |}{col 19}{res}{space 2} .0273206{col 31}{space 2} .1654386{col 42}{space 1}    0.17{col 51}{space 3}0.869{col 59}{space 4} -.296933{col 72}{space 3} .3515742
{txt}{space 12}2010  {c |}{col 19}{res}{space 2}  .061711{col 31}{space 2} .1668073{col 42}{space 1}    0.37{col 51}{space 3}0.711{col 59}{space 4}-.2652252{col 72}{space 3} .3886472
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}-5.978398{col 31}{space 2} .8855409{col 42}{space 1}   -6.75{col 51}{space 3}0.000{col 59}{space 4}-7.714026{col 72}{space 3}-4.242769
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
          sigma_u {c |} {res} .56050662
          {txt}sigma_e {c |} {res} .42023142
              {txt}rho {c |} {res} .64016283{txt}   (fraction of variance due to u_i)
{hline 18}{c BT}{hline 64}

{com}. margins, dydx(secretpol_) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,254}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2523664{col 31}{space 2} .0925719{col 42}{space 1}   -2.73{col 51}{space 3}0.006{col 59}{space 4}-.4046337{col 72}{space 3}-.1000992
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store four
{txt}
{com}. reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, absorb(regimecase year) vce(cluster regimecase) nocons residuals
{res}{txt}(dropped 50 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 10 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,170
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    231{txt}){col 67}= {res}      3.01
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0031
{txt}{col 51}R-squared{col 67}= {res}    0.8423
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8265
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0409
{txt}{col 1}Number of clusters ({res}regimecase{txt}) {col 30}= {res}       232{txt}{col 51}Root MSE{col 67}= {res}    0.3769

{txt}{ralign 83:(Std. err. adjusted for {res:232} clusters in {res:regimecase})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2814517{col 31}{space 2} .1477313{col 42}{space 1}   -1.91{col 51}{space 3}0.058{col 59}{space 4}-.5725247{col 72}{space 3} .0096213
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1667112{col 31}{space 2} .2427693{col 42}{space 1}    0.69{col 51}{space 3}0.493{col 59}{space 4}-.3116139{col 72}{space 3} .6450363
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0628639{col 31}{space 2} .0790706{col 42}{space 1}   -0.80{col 51}{space 3}0.427{col 59}{space 4}-.2186556{col 72}{space 3} .0929278
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0037434{col 31}{space 2} .0027206{col 42}{space 1}   -1.38{col 51}{space 3}0.170{col 59}{space 4}-.0091037{col 72}{space 3} .0016169
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0640122{col 31}{space 2} .1520717{col 42}{space 1}    0.42{col 51}{space 3}0.674{col 59}{space 4}-.2356127{col 72}{space 3} .3636371
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .0115266{col 31}{space 2} .0845432{col 42}{space 1}    0.14{col 51}{space 3}0.892{col 59}{space 4}-.1550478{col 72}{space 3} .1781009
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}  .156624{col 31}{space 2} .0518214{col 42}{space 1}    3.02{col 51}{space 3}0.003{col 59}{space 4}  .054521{col 72}{space 3} .2587271
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .0773065{col 31}{space 2} .0352983{col 42}{space 1}    2.19{col 51}{space 3}0.030{col 59}{space 4} .0077587{col 72}{space 3} .1468543
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}  regimecase{col 14}{c |}{space 1}      232{col 27}{space 1}      232{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. margins, dydx(secretpol_) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,170}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2814517{col 31}{space 2} .1477313{col 42}{space 1}   -1.91{col 51}{space 3}0.057{col 59}{space 4}-.5244481{col 72}{space 3}-.0384553
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store five
{txt}
{com}. 
. coefplot (one, label(Country- & Year-FE | No controls)) (two, label(Country- & Year-FE | Structural controls)) (three, label(Country- & Year-FE | Full controls)) (eight, label(Country-FE              | Full controls)) (four, label(RE          & Year-FE | Full controls)) (five, label(Regime- & Year-FE | Full controls)), xline(0) scheme(plotplainblind)  xtitle("Change in Protest") aspectratio(1) yscale(noline) levels(95 90) legend(position(6) cols(2) colgap(*.3) size(*.8)) ylabel(1 " ", noticks)
{res}{txt}
{com}. 
. reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.ln_counterb, absorb(ccode year) vce(cluster ccode) nocons residuals
{res}{txt}(dropped 1 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     2,492
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    106{txt}){col 67}= {res}      2.51
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0119
{txt}{col 51}R-squared{col 67}= {res}    0.8124
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8000
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0472
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       107{txt}{col 51}Root MSE{col 67}= {res}    0.4003

{txt}{ralign 83:(Std. err. adjusted for {res:107} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.3290256{col 31}{space 2} .1106985{col 42}{space 1}   -2.97{col 51}{space 3}0.004{col 59}{space 4}-.5484962{col 72}{space 3} -.109555
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0085138{col 31}{space 2} .2232952{col 42}{space 1}    0.04{col 51}{space 3}0.970{col 59}{space 4}-.4341907{col 72}{space 3} .4512183
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0232509{col 31}{space 2}  .081161{col 42}{space 1}    0.29{col 51}{space 3}0.775{col 59}{space 4}-.1376588{col 72}{space 3} .1841605
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0059828{col 31}{space 2} .0028543{col 42}{space 1}   -2.10{col 51}{space 3}0.038{col 59}{space 4}-.0116417{col 72}{space 3}-.0003238
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0704783{col 31}{space 2}  .095226{col 42}{space 1}    0.74{col 51}{space 3}0.461{col 59}{space 4}-.1183166{col 72}{space 3} .2592732
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0382547{col 31}{space 2} .0862491{col 42}{space 1}   -0.44{col 51}{space 3}0.658{col 59}{space 4}-.2092519{col 72}{space 3} .1327424
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1234323{col 31}{space 2} .0562714{col 42}{space 1}    2.19{col 51}{space 3}0.030{col 59}{space 4} .0118689{col 72}{space 3} .2349958
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .0649712{col 31}{space 2} .0482201{col 42}{space 1}    1.35{col 51}{space 3}0.181{col 59}{space 4}-.0306299{col 72}{space 3} .1605723
{txt}{space 17} {c |}
{space 6}ln_counterb {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1091416{col 31}{space 2} .1513143{col 42}{space 1}    0.72{col 51}{space 3}0.472{col 59}{space 4}-.1908538{col 72}{space 3}  .409137
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      107{col 27}{space 1}      107{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       40{col 27}{space 1}        1{col 39}{result}{space 1}       39{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. margins, dydx(secretpol_ l.ln_counterb) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:2,492}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised L.ln_counterb}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.3290256{col 31}{space 2} .1106985{col 42}{space 1}   -2.97{col 51}{space 3}0.003{col 59}{space 4}-.5111084{col 72}{space 3}-.1469427
{txt}{space 17} {c |}
{space 6}ln_counterb {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1091416{col 31}{space 2} .1513143{col 42}{space 1}    0.72{col 51}{space 3}0.471{col 59}{space 4}-.1397483{col 72}{space 3} .3580315
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store sixA
{txt}
{com}. reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.xpers, absorb(ccode year) vce(cluster ccode) nocons residuals
{res}{txt}(dropped 1 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     2,744
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}     96{txt}){col 67}= {res}      2.24
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0257
{txt}{col 51}R-squared{col 67}= {res}    0.7955
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7835
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0367
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}        97{txt}{col 51}Root MSE{col 67}= {res}    0.4185

{txt}{ralign 83:(Std. err. adjusted for {res:97} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2580809{col 31}{space 2} .1123086{col 42}{space 1}   -2.30{col 51}{space 3}0.024{col 59}{space 4}-.4810116{col 72}{space 3}-.0351501
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .2625361{col 31}{space 2} .3030257{col 42}{space 1}    0.87{col 51}{space 3}0.388{col 59}{space 4}-.3389652{col 72}{space 3} .8640374
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0120546{col 31}{space 2} .0796008{col 42}{space 1}   -0.15{col 51}{space 3}0.880{col 59}{space 4} -.170061{col 72}{space 3} .1459518
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0042533{col 31}{space 2} .0032084{col 42}{space 1}   -1.33{col 51}{space 3}0.188{col 59}{space 4} -.010622{col 72}{space 3} .0021154
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0646618{col 31}{space 2} .1044585{col 42}{space 1}    0.62{col 51}{space 3}0.537{col 59}{space 4}-.1426867{col 72}{space 3} .2720104
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0238504{col 31}{space 2} .0920793{col 42}{space 1}   -0.26{col 51}{space 3}0.796{col 59}{space 4}-.2066264{col 72}{space 3} .1589255
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .0983257{col 31}{space 2} .0570834{col 42}{space 1}    1.72{col 51}{space 3}0.088{col 59}{space 4}-.0149839{col 72}{space 3} .2116353
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1297624{col 31}{space 2} .0502683{col 42}{space 1}    2.58{col 51}{space 3}0.011{col 59}{space 4} .0299805{col 72}{space 3} .2295442
{txt}{space 17} {c |}
{space 12}xpers {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0487141{col 31}{space 2} .1474237{col 42}{space 1}   -0.33{col 51}{space 3}0.742{col 59}{space 4}-.3413478{col 72}{space 3} .2439197
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}       97{col 27}{space 1}       97{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. margins, dydx(secretpol_ l.xpers) level(90) post
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:2,744}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secretpol_revised L.xpers}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   std. err.{col 43}      z{col 51}   P>|z|{col 59}     [90% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2580809{col 31}{space 2} .1123086{col 42}{space 1}   -2.30{col 51}{space 3}0.022{col 59}{space 4} -.442812{col 72}{space 3}-.0733497
{txt}{space 17} {c |}
{space 12}xpers {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0487141{col 31}{space 2} .1474237{col 42}{space 1}   -0.33{col 51}{space 3}0.741{col 59}{space 4}-.2912045{col 72}{space 3} .1937764
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store sevenA
{txt}
{com}. 
. coefplot (sixA, label(Country- & Year-FE | Full controls & Counterbalancing)) (sevenA, label(Country- & Year-FE | Full controls & Personalization)), xline(0) scheme(plotplainblind)  xtitle("Change in Protest") aspectratio(1) yscale(noline) levels(95 90) legend(position(6) cols(1) colgap(*.3) size(*.8)) ylabel(1 "Secret Police" 2 "Counterbalancing" 3 "Personalization", noticks)
{res}{txt}
{com}. 
. coefplot (one, label(Country- & Year-FE | No controls)) (two, label(Country- & Year-FE | Structural controls)) (three, label(Country- & Year-FE | Full controls)) (eight, label(Country-FE              | Full controls)) (four, label(RE          & Year-FE | Full controls)) (five, label(Regime- & Year-FE | Full controls)) (sixA, label(Country- & Year-FE | Full controls & Counterbalancing)) (sevenA, label(Country- & Year-FE | Full controls & Personalization)), xline(0) scheme(plotplainblind)  xtitle("Change in Protest") aspectratio(1) yscale(noline) levels(95 90) legend(position(3) cols(1) colgap(*.3) size(*.75)) ylabel(1 "Secret Police" 2 "Counterbalancing" 3 "Personalization", noticks) name(fig_new, replace)
{res}{txt}
{com}. graph export combinedeffects.tif, replace 
{txt}{p 0 4 2}
(file {bf}
combinedeffects.tif{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
combinedeffects.tif{rm}
saved as
TIFF
format
{p_end}

{com}. 
. 
. 
. *****************************************************
. *** Figures and Tables in Supplementary Materials ***
. *****************************************************
. 
. * Section 1, Table 1 Supplementary Materials - Summary Statistics
. sum Protest secretpol_ ln_pop ln_gdppc l12gr lexclpop nbr_protest intrastate attempt v2csantimv v2csprtcpt v2csreprss v2cseeorgs theta_mean ln_counterb xpers urbanpop Capacity v2clrspct v2stfisccap v2terr v2csstruc_1 everdemoc kill disap polpris tort physint mean5 mean3  if sample==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}Protest {c |}{res}      3,252    -.063612    .9044909   -2.60185    2.48666
{txt}secretpol_~d {c |}{res}      3,252    .2564576    .4367445          0          1
{txt}{space 6}ln_pop {c |}{res}      3,252    15.86765    1.506052   12.55895   21.01422
{txt}{space 4}ln_gdppc {c |}{res}      3,252    7.428726    1.305826   4.892626   13.09808
{txt}{space 7}l12gr {c |}{res}      3,252    1.667025    6.221189  -37.87894   101.3255
{txt}{hline 13}{c +}{hline 57}
{space 4}lexclpop {c |}{res}      3,252    .2652445     .291986          0        .98
{txt}{space 1}nbr_protest {c |}{res}      3,252   -.3010931    1.023468  -2.609925   3.673636
{txt}{space 2}intrastate {c |}{res}      3,252    .2109471    .4080437          0          1
{txt}{space 5}attempt {c |}{res}      3,252    .0698032    .2548542          0          1
{txt}{space 2}v2csantimv {c |}{res}      3,252   -.1507279     1.23955     -3.244      3.933
{txt}{hline 13}{c +}{hline 57}
{space 2}v2csprtcpt {c |}{res}      3,252   -.2395243    1.229637     -3.009      2.546
{txt}{space 2}v2csreprss {c |}{res}      3,252   -.4885289    1.122067     -3.417      2.623
{txt}{space 2}v2cseeorgs {c |}{res}      3,252   -.4167312    1.246879     -3.058      2.569
{txt}{space 2}theta_mean {c |}{res}      3,252   -.7167496    1.064074  -3.393351    2.20684
{txt}{space 1}ln_counterb {c |}{res}      2,563    .9679481    .2253197   .6931472   1.640017
{txt}{hline 13}{c +}{hline 57}
{space 7}xpers {c |}{res}      2,776    .4385443    .2717604          0          1
{txt}{space 4}urbanpop {c |}{res}      3,252     39.3582    22.36797      2.193        100
{txt}{space 4}Capacity {c |}{res}      3,252   -.2175522    .5962264     -2.051      1.813
{txt}{space 3}v2clrspct {c |}{res}      3,252   -.6148475    1.015711     -3.031      2.639
{txt}{space 1}v2stfisccap {c |}{res}      3,044    .0783305    .8516228     -2.146      2.298
{txt}{hline 13}{c +}{hline 57}
{space 6}v2terr {c |}{res}      3,252    1.478348     .677607  -.4179277   3.719017
{txt}{space 1}v2csstruc_1 {c |}{res}      3,252    .2699302    .2185979          0          1
{txt}{space 3}everdemoc {c |}{res}      3,252    .6878844     .463428          0          1
{txt}{space 8}kill {c |}{res}      2,033    1.147073    .7777115          0          2
{txt}{space 7}disap {c |}{res}      2,033    1.564191    .6887285          0          2
{txt}{hline 13}{c +}{hline 57}
{space 5}polpris {c |}{res}      2,033    .6773242     .729822          0          2
{txt}{space 8}tort {c |}{res}      2,033     .538121    .6525599          0          2
{txt}{space 5}physint {c |}{res}      2,033    3.926709    2.080572          0          8
{txt}{space 7}mean5 {c |}{res}      3,252   -.1946538    1.318716  -3.895315   3.523553
{txt}{space 7}mean3 {c |}{res}      3,252   -.3234276    1.421615  -5.226244   3.397683
{txt}
{com}. 
. 
. * Section 2, Table 2 Supplementary Materials - Main Models
. eststo clear
{txt}
{com}. reg Protest secretpol_ if sample==1, vce(cluster ccode)

{txt}Linear regression                               Number of obs     = {res}     3,252
                                                {txt}F(1, 110)         =  {res}     8.37
                                                {txt}Prob > F          = {res}    0.0046
                                                {txt}R-squared         = {res}    0.0381
                                                {txt}Root MSE          =    {res} .88723

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2} .4041883{col 31}{space 2} .1396918{col 42}{space 1}    2.89{col 51}{space 3}0.005{col 59}{space 4} .1273519{col 72}{space 3} .6810247
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}-.1672692{col 31}{space 2} .0826004{col 42}{space 1}   -2.03{col 51}{space 3}0.045{col 59}{space 4}-.3309638{col 72}{space 3}-.0035746
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo: reghdfe Protest secretpol_ if sample==1, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    110{txt}){col 67}= {res}      7.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0073
{txt}{col 51}R-squared{col 67}= {res}    0.7887
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7778
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0200
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4263

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2} -.282512{col 31}{space 2} .1033215{col 42}{space 1}   -2.73{col 51}{space 3}0.007{col 59}{space 4}-.4872709{col 72}{space 3}-.0777532
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop if sample==1, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   5{txt},{res}    110{txt}){col 67}= {res}      2.59
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0297
{txt}{col 51}R-squared{col 67}= {res}    0.7904
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7793
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0277
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4249

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2689804{col 31}{space 2} .1034567{col 42}{space 1}   -2.60{col 51}{space 3}0.011{col 59}{space 4}-.4740074{col 72}{space 3}-.0639534
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}  .225204{col 31}{space 2} .2637483{col 42}{space 1}    0.85{col 51}{space 3}0.395{col 59}{space 4}-.2974833{col 72}{space 3} .7478912
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0365772{col 31}{space 2} .0692872{col 42}{space 1}   -0.53{col 51}{space 3}0.599{col 59}{space 4}-.1738883{col 72}{space 3} .1007338
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0041564{col 31}{space 2} .0025674{col 42}{space 1}   -1.62{col 51}{space 3}0.108{col 59}{space 4}-.0092444{col 72}{space 3} .0009315
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}   .02404{col 31}{space 2} .1139609{col 42}{space 1}    0.21{col 51}{space 3}0.833{col 59}{space 4}-.2018038{col 72}{space 3} .2498839
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt if sample==1, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    110{txt}){col 67}= {res}      3.90
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.7952
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7841
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0500
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4202

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2759158{col 31}{space 2} .0963768{col 42}{space 1}   -2.86{col 51}{space 3}0.005{col 59}{space 4} -.466912{col 72}{space 3}-.0849196
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3035898{col 31}{space 2} .2624257{col 42}{space 1}    1.16{col 51}{space 3}0.250{col 59}{space 4}-.2164763{col 72}{space 3} .8236559
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0288722{col 31}{space 2} .0706899{col 42}{space 1}   -0.41{col 51}{space 3}0.684{col 59}{space 4}-.1689629{col 72}{space 3} .1112185
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0036449{col 31}{space 2} .0025206{col 42}{space 1}   -1.45{col 51}{space 3}0.151{col 59}{space 4}-.0086402{col 72}{space 3} .0013503
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0249911{col 31}{space 2} .1001768{col 42}{space 1}    0.25{col 51}{space 3}0.803{col 59}{space 4}-.1735358{col 72}{space 3} .2235179
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} -.084219{col 31}{space 2} .0734618{col 42}{space 1}   -1.15{col 51}{space 3}0.254{col 59}{space 4} -.229803{col 72}{space 3}  .061365
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1638862{col 31}{space 2} .0529567{col 42}{space 1}    3.09{col 51}{space 3}0.002{col 59}{space 4} .0589384{col 72}{space 3}  .268834
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1086513{col 31}{space 2} .0388738{col 42}{space 1}    2.79{col 51}{space 3}0.006{col 59}{space 4} .0316126{col 72}{space 3}   .18569
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. esttab using secpol_protest, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("All models include Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest.rtf"'})

{com}. 
. 
. * Section 3, Table 3 Supplementary Materials  - Alternative Modelling Strategies: No year-FE; time trends for whole sample as well as unit-specifc 
. eststo clear
{txt}
{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt if sample==1, absorb(ccode) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 1 HDFE group{col 51}F({res}   8{txt},{res}    110{txt}){col 67}= {res}     11.40
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.7814
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7732
{txt}{col 51}Within R-sq.{col 67}= {res}    0.2225
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4308

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2716322{col 31}{space 2} .0910002{col 42}{space 1}   -2.98{col 51}{space 3}0.003{col 59}{space 4}-.4519732{col 72}{space 3}-.0912912
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .6411338{col 31}{space 2} .1058647{col 42}{space 1}    6.06{col 51}{space 3}0.000{col 59}{space 4} .4313348{col 72}{space 3} .8509329
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0180603{col 31}{space 2} .0790452{col 42}{space 1}   -0.23{col 51}{space 3}0.820{col 59}{space 4}-.1747092{col 72}{space 3} .1385887
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0040943{col 31}{space 2} .0025197{col 42}{space 1}   -1.62{col 51}{space 3}0.107{col 59}{space 4}-.0090877{col 72}{space 3} .0008991
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0127851{col 31}{space 2} .1056494{col 42}{space 1}   -0.12{col 51}{space 3}0.904{col 59}{space 4}-.2221574{col 72}{space 3} .1965872
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .1088154{col 31}{space 2} .0652861{col 42}{space 1}    1.67{col 51}{space 3}0.098{col 59}{space 4}-.0205663{col 72}{space 3}  .238197
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}  .185145{col 31}{space 2} .0532745{col 42}{space 1}    3.48{col 51}{space 3}0.001{col 59}{space 4} .0795674{col 72}{space 3} .2907226
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1140556{col 31}{space 2} .0424653{col 42}{space 1}    2.69{col 51}{space 3}0.008{col 59}{space 4} .0298994{col 72}{space 3} .1982118
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt c.year##c.year##c.year if sample==1, absorb(ccode) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}{txt}note: {res}c.year#c.year#c.year{txt} omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 1 HDFE group{col 51}F({res}  10{txt},{res}    110{txt}){col 67}= {res}      8.98
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.7835
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7752
{txt}{col 51}Within R-sq.{col 67}= {res}    0.2298
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4289

{txt}{ralign 86:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}             Protest{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}secretpol_revised {c |}{col 22}{res}{space 2}-.2877066{col 34}{space 2} .0917936{col 45}{space 1}   -3.13{col 54}{space 3}0.002{col 62}{space 4}  -.46962{col 75}{space 3}-.1057932
{txt}{space 20} {c |}
{space 14}ln_pop {c |}
{space 17}L1. {c |}{col 22}{res}{space 2} .2023684{col 34}{space 2} .2796035{col 45}{space 1}    0.72{col 54}{space 3}0.471{col 62}{space 4}  -.35174{col 75}{space 3} .7564768
{txt}{space 20} {c |}
{space 12}ln_gdppc {c |}
{space 17}L1. {c |}{col 22}{res}{space 2}-.0500448{col 34}{space 2} .0726016{col 45}{space 1}   -0.69{col 54}{space 3}0.492{col 62}{space 4} -.193924{col 75}{space 3} .0938345
{txt}{space 20} {c |}
{space 15}l12gr {c |}{col 22}{res}{space 2}-.0043794{col 34}{space 2}  .002535{col 45}{space 1}   -1.73{col 54}{space 3}0.087{col 62}{space 4}-.0094032{col 75}{space 3} .0006445
{txt}{space 20} {c |}
{space 12}lexclpop {c |}
{space 17}L1. {c |}{col 22}{res}{space 2} .0219946{col 34}{space 2} .1028844{col 45}{space 1}    0.21{col 54}{space 3}0.831{col 62}{space 4}-.1818982{col 75}{space 3} .2258874
{txt}{space 20} {c |}
{space 9}nbr_protest {c |}{col 22}{res}{space 2} .1214173{col 34}{space 2}  .063567{col 45}{space 1}    1.91{col 54}{space 3}0.059{col 62}{space 4}-.0045576{col 75}{space 3} .2473921
{txt}{space 10}intrastate {c |}{col 22}{res}{space 2} .1748343{col 34}{space 2} .0519459{col 45}{space 1}    3.37{col 54}{space 3}0.001{col 62}{space 4} .0718897{col 75}{space 3} .2777788
{txt}{space 13}attempt {c |}{col 22}{res}{space 2} .1177728{col 34}{space 2} .0427453{col 45}{space 1}    2.76{col 54}{space 3}0.007{col 62}{space 4} .0330616{col 75}{space 3}  .202484
{txt}{space 16}year {c |}{col 22}{res}{space 2} .1942825{col 34}{space 2} .4994173{col 45}{space 1}    0.39{col 54}{space 3}0.698{col 62}{space 4}-.7954454{col 75}{space 3}  1.18401
{txt}{space 20} {c |}
{space 7}c.year#c.year {c |}{col 22}{res}{space 2}-.0000457{col 34}{space 2} .0001257{col 45}{space 1}   -0.36{col 54}{space 3}0.717{col 62}{space 4}-.0002947{col 75}{space 3} .0002033
{txt}{space 20} {c |}
c.year#c.year#c.year {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt if sample==1, absorb(i.ccode##c.year) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 1 HDFE group{col 51}F({res}   8{txt},{res}    110{txt}){col 67}= {res}      5.78
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.8725
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8628
{txt}{col 51}Within R-sq.{col 67}= {res}    0.1227
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.3350

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2080154{col 31}{space 2} .0983762{col 42}{space 1}   -2.11{col 51}{space 3}0.037{col 59}{space 4}-.4029739{col 72}{space 3}-.0130568
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0367124{col 31}{space 2} .4014426{col 42}{space 1}    0.09{col 51}{space 3}0.927{col 59}{space 4}-.7588526{col 72}{space 3} .8322774
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0858277{col 31}{space 2} .0693777{col 42}{space 1}    1.24{col 51}{space 3}0.219{col 59}{space 4}-.0516626{col 72}{space 3}  .223318
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2} -.007103{col 31}{space 2} .0020286{col 42}{space 1}   -3.50{col 51}{space 3}0.001{col 59}{space 4}-.0111232{col 72}{space 3}-.0030829
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}  .102615{col 31}{space 2} .0988559{col 42}{space 1}    1.04{col 51}{space 3}0.302{col 59}{space 4}-.0932942{col 72}{space 3} .2985243
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .2965055{col 31}{space 2} .0671312{col 42}{space 1}    4.42{col 51}{space 3}0.000{col 59}{space 4} .1634671{col 72}{space 3} .4295439
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1390498{col 31}{space 2}  .047835{col 42}{space 1}    2.91{col 51}{space 3}0.004{col 59}{space 4}  .044252{col 72}{space 3} .2338476
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .0433617{col 31}{space 2} .0339911{col 42}{space 1}    1.28{col 51}{space 3}0.205{col 59}{space 4}-.0240007{col 72}{space 3} .1107242
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}        ccode{col 15}{c |}{space 1}      111{col 28}{space 1}      111{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text} ccode#c.year{col 15}{c |}{space 1}      111{col 28}{space 1}        0{col 40}{result}{space 1}      111{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. esttab using secpol_protest_rob1, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_rob1.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_rob1.rtf"'})

{com}. 
. 
. * Section 3, Table 4 Supplementary Materials - Alternative Modelling Strategies: RE; Regime-case FE
. eststo clear
{txt}
{com}. eststo: xtreg Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, re vce(cluster ccode)
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     3,254
{txt}Group variable: {res}ccode                           {txt}Number of groups  = {res}       113

{txt}R-squared:                                      Obs per group:
     Within  = {res}0.2194                                         {txt}min = {res}         1
{txt}     Between = {res}0.4194                                         {txt}avg = {res}      28.8
{txt}     Overall = {res}0.3780                                         {txt}max = {res}        49

                                                {txt}Wald chi2({res}8{txt})      =  {res}   106.59
{txt}corr(u_i, X) = {res}0{txt} (assumed)                      Prob > chi2       =     {res}0.0000

{txt}{ralign 83:(Std. err. adjusted for {res:113} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2549386{col 31}{space 2} .0852774{col 42}{space 1}   -2.99{col 51}{space 3}0.003{col 59}{space 4}-.4220793{col 72}{space 3}-.0877979
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}   .53004{col 31}{space 2}  .072761{col 42}{space 1}    7.28{col 51}{space 3}0.000{col 59}{space 4}  .387431{col 72}{space 3} .6726489
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0380314{col 31}{space 2} .0642188{col 42}{space 1}    0.59{col 51}{space 3}0.554{col 59}{space 4}-.0878352{col 72}{space 3}  .163898
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0048408{col 31}{space 2} .0025217{col 42}{space 1}   -1.92{col 51}{space 3}0.055{col 59}{space 4}-.0097833{col 72}{space 3} .0001017
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0404341{col 31}{space 2}  .100562{col 42}{space 1}   -0.40{col 51}{space 3}0.688{col 59}{space 4}-.2375319{col 72}{space 3} .1566637
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .1353737{col 31}{space 2} .0620311{col 42}{space 1}    2.18{col 51}{space 3}0.029{col 59}{space 4} .0137949{col 72}{space 3} .2569525
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1907296{col 31}{space 2}  .052662{col 42}{space 1}    3.62{col 51}{space 3}0.000{col 59}{space 4} .0875141{col 72}{space 3} .2939452
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1105421{col 31}{space 2} .0422602{col 42}{space 1}    2.62{col 51}{space 3}0.009{col 59}{space 4} .0277136{col 72}{space 3} .1933706
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}-8.586208{col 31}{space 2} 1.200047{col 42}{space 1}   -7.15{col 51}{space 3}0.000{col 59}{space 4}-10.93826{col 72}{space 3}-6.234159
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
          sigma_u {c |} {res} .59627591
          {txt}sigma_e {c |} {res} .43076034
              {txt}rho {c |} {res} .65707879{txt}   (fraction of variance due to u_i)
{hline 18}{c BT}{hline 64}
({res}est1{txt} stored)

{com}. eststo: xtreg Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt i.year, re vce(cluster ccode)
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     3,254
{txt}Group variable: {res}ccode                           {txt}Number of groups  = {res}       113

{txt}R-squared:                                      Obs per group:
     Within  = {res}0.2688                                         {txt}min = {res}         1
{txt}     Between = {res}0.3094                                         {txt}avg = {res}      28.8
{txt}     Overall = {res}0.3210                                         {txt}max = {res}        49

                                                {txt}Wald chi2({res}56{txt})     =  {res}   417.20
{txt}corr(u_i, X) = {res}0{txt} (assumed)                      Prob > chi2       =     {res}0.0000

{txt}{ralign 83:(Std. err. adjusted for {res:113} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2523664{col 31}{space 2} .0925719{col 42}{space 1}   -2.73{col 51}{space 3}0.006{col 59}{space 4}-.4338041{col 72}{space 3}-.0709288
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3686223{col 31}{space 2} .0524434{col 42}{space 1}    7.03{col 51}{space 3}0.000{col 59}{space 4} .2658352{col 72}{space 3} .4714094
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0264139{col 31}{space 2} .0606034{col 42}{space 1}    0.44{col 51}{space 3}0.663{col 59}{space 4}-.0923667{col 72}{space 3} .1451944
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0041478{col 31}{space 2} .0025371{col 42}{space 1}   -1.63{col 51}{space 3}0.102{col 59}{space 4}-.0091204{col 72}{space 3} .0008248
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0015278{col 31}{space 2} .1017878{col 42}{space 1}    0.02{col 51}{space 3}0.988{col 59}{space 4}-.1979726{col 72}{space 3} .2010283
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} -.032951{col 31}{space 2} .0675996{col 42}{space 1}   -0.49{col 51}{space 3}0.626{col 59}{space 4}-.1654438{col 72}{space 3} .0995417
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1646711{col 31}{space 2}  .052955{col 42}{space 1}    3.11{col 51}{space 3}0.002{col 59}{space 4} .0608812{col 72}{space 3}  .268461
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1149479{col 31}{space 2} .0395433{col 42}{space 1}    2.91{col 51}{space 3}0.004{col 59}{space 4} .0374444{col 72}{space 3} .1924514
{txt}{space 17} {c |}
{space 13}year {c |}
{space 12}1963  {c |}{col 19}{res}{space 2}-.0129446{col 31}{space 2} .0343678{col 42}{space 1}   -0.38{col 51}{space 3}0.706{col 59}{space 4}-.0803042{col 72}{space 3}  .054415
{txt}{space 12}1964  {c |}{col 19}{res}{space 2}-.0245172{col 31}{space 2} .0450601{col 42}{space 1}   -0.54{col 51}{space 3}0.586{col 59}{space 4}-.1128334{col 72}{space 3} .0637989
{txt}{space 12}1965  {c |}{col 19}{res}{space 2}-.1000249{col 31}{space 2} .0623411{col 42}{space 1}   -1.60{col 51}{space 3}0.109{col 59}{space 4}-.2222111{col 72}{space 3} .0221614
{txt}{space 12}1966  {c |}{col 19}{res}{space 2}-.0988461{col 31}{space 2} .0901798{col 42}{space 1}   -1.10{col 51}{space 3}0.273{col 59}{space 4}-.2755953{col 72}{space 3} .0779031
{txt}{space 12}1967  {c |}{col 19}{res}{space 2}-.1257951{col 31}{space 2} .1012876{col 42}{space 1}   -1.24{col 51}{space 3}0.214{col 59}{space 4} -.324315{col 72}{space 3} .0727249
{txt}{space 12}1968  {c |}{col 19}{res}{space 2}-.1645025{col 31}{space 2} .1090954{col 42}{space 1}   -1.51{col 51}{space 3}0.132{col 59}{space 4}-.3783256{col 72}{space 3} .0493205
{txt}{space 12}1969  {c |}{col 19}{res}{space 2}-.2014594{col 31}{space 2} .1160463{col 42}{space 1}   -1.74{col 51}{space 3}0.083{col 59}{space 4} -.428906{col 72}{space 3} .0259872
{txt}{space 12}1970  {c |}{col 19}{res}{space 2}-.2105851{col 31}{space 2} .1183487{col 42}{space 1}   -1.78{col 51}{space 3}0.075{col 59}{space 4}-.4425444{col 72}{space 3} .0213741
{txt}{space 12}1971  {c |}{col 19}{res}{space 2}-.2584173{col 31}{space 2} .1236574{col 42}{space 1}   -2.09{col 51}{space 3}0.037{col 59}{space 4}-.5007813{col 72}{space 3}-.0160533
{txt}{space 12}1972  {c |}{col 19}{res}{space 2}-.2661626{col 31}{space 2} .1317163{col 42}{space 1}   -2.02{col 51}{space 3}0.043{col 59}{space 4}-.5243219{col 72}{space 3}-.0080034
{txt}{space 12}1973  {c |}{col 19}{res}{space 2}-.2854002{col 31}{space 2} .1333157{col 42}{space 1}   -2.14{col 51}{space 3}0.032{col 59}{space 4}-.5466942{col 72}{space 3}-.0241061
{txt}{space 12}1974  {c |}{col 19}{res}{space 2}-.3018144{col 31}{space 2}  .131833{col 42}{space 1}   -2.29{col 51}{space 3}0.022{col 59}{space 4}-.5602023{col 72}{space 3}-.0434266
{txt}{space 12}1975  {c |}{col 19}{res}{space 2}-.3057474{col 31}{space 2} .1311591{col 42}{space 1}   -2.33{col 51}{space 3}0.020{col 59}{space 4}-.5628145{col 72}{space 3}-.0486803
{txt}{space 12}1976  {c |}{col 19}{res}{space 2} -.292669{col 31}{space 2}  .129987{col 42}{space 1}   -2.25{col 51}{space 3}0.024{col 59}{space 4}-.5474388{col 72}{space 3}-.0378992
{txt}{space 12}1977  {c |}{col 19}{res}{space 2}  -.24664{col 31}{space 2} .1266641{col 42}{space 1}   -1.95{col 51}{space 3}0.052{col 59}{space 4}-.4948971{col 72}{space 3} .0016171
{txt}{space 12}1978  {c |}{col 19}{res}{space 2}-.1963883{col 31}{space 2} .1261917{col 42}{space 1}   -1.56{col 51}{space 3}0.120{col 59}{space 4}-.4437195{col 72}{space 3} .0509429
{txt}{space 12}1979  {c |}{col 19}{res}{space 2}-.1582265{col 31}{space 2} .1276353{col 42}{space 1}   -1.24{col 51}{space 3}0.215{col 59}{space 4} -.408387{col 72}{space 3}  .091934
{txt}{space 12}1980  {c |}{col 19}{res}{space 2}-.1456617{col 31}{space 2}  .129851{col 42}{space 1}   -1.12{col 51}{space 3}0.262{col 59}{space 4} -.400165{col 72}{space 3} .1088417
{txt}{space 12}1981  {c |}{col 19}{res}{space 2}-.1307921{col 31}{space 2} .1288927{col 42}{space 1}   -1.01{col 51}{space 3}0.310{col 59}{space 4}-.3834173{col 72}{space 3}  .121833
{txt}{space 12}1982  {c |}{col 19}{res}{space 2}-.1423058{col 31}{space 2} .1307085{col 42}{space 1}   -1.09{col 51}{space 3}0.276{col 59}{space 4}-.3984898{col 72}{space 3} .1138782
{txt}{space 12}1983  {c |}{col 19}{res}{space 2}-.1298808{col 31}{space 2} .1329357{col 42}{space 1}   -0.98{col 51}{space 3}0.329{col 59}{space 4}  -.39043{col 72}{space 3} .1306684
{txt}{space 12}1984  {c |}{col 19}{res}{space 2}-.1341499{col 31}{space 2} .1322754{col 42}{space 1}   -1.01{col 51}{space 3}0.311{col 59}{space 4}-.3934048{col 72}{space 3} .1251051
{txt}{space 12}1985  {c |}{col 19}{res}{space 2}-.1326786{col 31}{space 2} .1315653{col 42}{space 1}   -1.01{col 51}{space 3}0.313{col 59}{space 4}-.3905417{col 72}{space 3} .1251846
{txt}{space 12}1986  {c |}{col 19}{res}{space 2}-.1084988{col 31}{space 2} .1291744{col 42}{space 1}   -0.84{col 51}{space 3}0.401{col 59}{space 4}-.3616759{col 72}{space 3} .1446783
{txt}{space 12}1987  {c |}{col 19}{res}{space 2}-.0487767{col 31}{space 2} .1269105{col 42}{space 1}   -0.38{col 51}{space 3}0.701{col 59}{space 4}-.2975168{col 72}{space 3} .1999634
{txt}{space 12}1988  {c |}{col 19}{res}{space 2} .0404879{col 31}{space 2}  .125586{col 42}{space 1}    0.32{col 51}{space 3}0.747{col 59}{space 4}-.2056562{col 72}{space 3} .2866319
{txt}{space 12}1989  {c |}{col 19}{res}{space 2} .1282228{col 31}{space 2} .1239958{col 42}{space 1}    1.03{col 51}{space 3}0.301{col 59}{space 4}-.1148045{col 72}{space 3} .3712501
{txt}{space 12}1990  {c |}{col 19}{res}{space 2} .1878587{col 31}{space 2} .1255415{col 42}{space 1}    1.50{col 51}{space 3}0.135{col 59}{space 4} -.058198{col 72}{space 3} .4339155
{txt}{space 12}1991  {c |}{col 19}{res}{space 2}  .248476{col 31}{space 2} .1253502{col 42}{space 1}    1.98{col 51}{space 3}0.047{col 59}{space 4} .0027942{col 72}{space 3} .4941578
{txt}{space 12}1992  {c |}{col 19}{res}{space 2} .2345727{col 31}{space 2} .1209091{col 42}{space 1}    1.94{col 51}{space 3}0.052{col 59}{space 4}-.0024048{col 72}{space 3} .4715502
{txt}{space 12}1993  {c |}{col 19}{res}{space 2} .2119349{col 31}{space 2} .1234366{col 42}{space 1}    1.72{col 51}{space 3}0.086{col 59}{space 4}-.0299963{col 72}{space 3} .4538661
{txt}{space 12}1994  {c |}{col 19}{res}{space 2} .1794762{col 31}{space 2} .1234897{col 42}{space 1}    1.45{col 51}{space 3}0.146{col 59}{space 4}-.0625591{col 72}{space 3} .4215115
{txt}{space 12}1995  {c |}{col 19}{res}{space 2}  .175004{col 31}{space 2} .1218751{col 42}{space 1}    1.44{col 51}{space 3}0.151{col 59}{space 4}-.0638669{col 72}{space 3} .4138748
{txt}{space 12}1996  {c |}{col 19}{res}{space 2}  .187482{col 31}{space 2}  .124644{col 42}{space 1}    1.50{col 51}{space 3}0.133{col 59}{space 4}-.0568157{col 72}{space 3} .4317797
{txt}{space 12}1997  {c |}{col 19}{res}{space 2} .2034544{col 31}{space 2} .1251436{col 42}{space 1}    1.63{col 51}{space 3}0.104{col 59}{space 4}-.0418225{col 72}{space 3} .4487313
{txt}{space 12}1998  {c |}{col 19}{res}{space 2} .2235653{col 31}{space 2} .1261417{col 42}{space 1}    1.77{col 51}{space 3}0.076{col 59}{space 4}-.0236679{col 72}{space 3} .4707985
{txt}{space 12}1999  {c |}{col 19}{res}{space 2} .1847029{col 31}{space 2} .1287782{col 42}{space 1}    1.43{col 51}{space 3}0.151{col 59}{space 4}-.0676976{col 72}{space 3} .4371035
{txt}{space 12}2000  {c |}{col 19}{res}{space 2} .1621416{col 31}{space 2} .1289977{col 42}{space 1}    1.26{col 51}{space 3}0.209{col 59}{space 4}-.0906893{col 72}{space 3} .4149724
{txt}{space 12}2001  {c |}{col 19}{res}{space 2} .1074975{col 31}{space 2} .1332863{col 42}{space 1}    0.81{col 51}{space 3}0.420{col 59}{space 4}-.1537389{col 72}{space 3} .3687338
{txt}{space 12}2002  {c |}{col 19}{res}{space 2} .1125704{col 31}{space 2} .1397167{col 42}{space 1}    0.81{col 51}{space 3}0.420{col 59}{space 4}-.1612694{col 72}{space 3} .3864101
{txt}{space 12}2003  {c |}{col 19}{res}{space 2} .0890689{col 31}{space 2} .1432782{col 42}{space 1}    0.62{col 51}{space 3}0.534{col 59}{space 4}-.1917512{col 72}{space 3}  .369889
{txt}{space 12}2004  {c |}{col 19}{res}{space 2} .0865581{col 31}{space 2} .1463341{col 42}{space 1}    0.59{col 51}{space 3}0.554{col 59}{space 4}-.2002515{col 72}{space 3} .3733677
{txt}{space 12}2005  {c |}{col 19}{res}{space 2} .0969741{col 31}{space 2} .1529463{col 42}{space 1}    0.63{col 51}{space 3}0.526{col 59}{space 4}-.2027951{col 72}{space 3} .3967434
{txt}{space 12}2006  {c |}{col 19}{res}{space 2} .0371322{col 31}{space 2}  .156388{col 42}{space 1}    0.24{col 51}{space 3}0.812{col 59}{space 4}-.2693826{col 72}{space 3}  .343647
{txt}{space 12}2007  {c |}{col 19}{res}{space 2} .0362112{col 31}{space 2}  .160168{col 42}{space 1}    0.23{col 51}{space 3}0.821{col 59}{space 4}-.2777123{col 72}{space 3} .3501347
{txt}{space 12}2008  {c |}{col 19}{res}{space 2} .0246074{col 31}{space 2} .1640876{col 42}{space 1}    0.15{col 51}{space 3}0.881{col 59}{space 4}-.2969983{col 72}{space 3}  .346213
{txt}{space 12}2009  {c |}{col 19}{res}{space 2} .0273206{col 31}{space 2} .1654386{col 42}{space 1}    0.17{col 51}{space 3}0.869{col 59}{space 4} -.296933{col 72}{space 3} .3515742
{txt}{space 12}2010  {c |}{col 19}{res}{space 2}  .061711{col 31}{space 2} .1668073{col 42}{space 1}    0.37{col 51}{space 3}0.711{col 59}{space 4}-.2652252{col 72}{space 3} .3886472
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}-5.978398{col 31}{space 2} .8855409{col 42}{space 1}   -6.75{col 51}{space 3}0.000{col 59}{space 4}-7.714026{col 72}{space 3}-4.242769
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
          sigma_u {c |} {res} .56050662
          {txt}sigma_e {c |} {res} .42023142
              {txt}rho {c |} {res} .64016283{txt}   (fraction of variance due to u_i)
{hline 18}{c BT}{hline 64}
({res}est2{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, absorb(regimecase year) vce(cluster regimecase) nocons 
{res}{txt}(dropped 50 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 10 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,170
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    231{txt}){col 67}= {res}      3.01
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0031
{txt}{col 51}R-squared{col 67}= {res}    0.8423
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8265
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0409
{txt}{col 1}Number of clusters ({res}regimecase{txt}) {col 30}= {res}       232{txt}{col 51}Root MSE{col 67}= {res}    0.3769

{txt}{ralign 83:(Std. err. adjusted for {res:232} clusters in {res:regimecase})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2814517{col 31}{space 2} .1477313{col 42}{space 1}   -1.91{col 51}{space 3}0.058{col 59}{space 4}-.5725247{col 72}{space 3} .0096213
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1667112{col 31}{space 2} .2427693{col 42}{space 1}    0.69{col 51}{space 3}0.493{col 59}{space 4}-.3116139{col 72}{space 3} .6450363
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0628639{col 31}{space 2} .0790706{col 42}{space 1}   -0.80{col 51}{space 3}0.427{col 59}{space 4}-.2186556{col 72}{space 3} .0929278
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0037434{col 31}{space 2} .0027206{col 42}{space 1}   -1.38{col 51}{space 3}0.170{col 59}{space 4}-.0091037{col 72}{space 3} .0016169
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0640122{col 31}{space 2} .1520717{col 42}{space 1}    0.42{col 51}{space 3}0.674{col 59}{space 4}-.2356127{col 72}{space 3} .3636371
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .0115266{col 31}{space 2} .0845432{col 42}{space 1}    0.14{col 51}{space 3}0.892{col 59}{space 4}-.1550478{col 72}{space 3} .1781009
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}  .156624{col 31}{space 2} .0518214{col 42}{space 1}    3.02{col 51}{space 3}0.003{col 59}{space 4}  .054521{col 72}{space 3} .2587271
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .0773065{col 31}{space 2} .0352983{col 42}{space 1}    2.19{col 51}{space 3}0.030{col 59}{space 4} .0077587{col 72}{space 3} .1468543
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}  regimecase{col 14}{c |}{space 1}      232{col 27}{space 1}      232{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. esttab using secpol_protest_rob1a, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("Standard errors clustered on the country.") drop(*.year)
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_rob1a.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_rob1a.rtf"'})

{com}. 
. 
. * Section 4, Figure 1 Supplementary Materials - Parallel trends analysis
. gen secpol_year=year if secretpol_==1
{txt}(11,575 missing values generated)

{com}. bysort ccode: egen first_secpol = min(secpol_year)
{txt}(9,399 missing values generated)

{com}. drop secpol_year
{txt}
{com}. bysort ccode: egen sp_ever = max(secretpol_)
{txt}(4,136 missing values generated)

{com}. gen secpoltime= year-2011 if sp_ever==0 & secretpol_!=.
{txt}(10,242 missing values generated)

{com}. replace secpoltime=year-first_secpol if sp_ever==1 & secretpol_!=.
{txt}(2,558 real changes made)

{com}. 
. gen reonset=1 if secretpol_==1 & l.secretpol_!=1 & year!=first_secpol 
{txt}(13,257 missing values generated)

{com}. gen reonset_year=year if reonset==1
{txt}(13,257 missing values generated)

{com}. bysort ccode: replace reonset_year=reonset_year[_n-1] if reonset_year==.
{txt}(176 real changes made)

{com}. replace secpoltime=year-reonset_year if reonset_year!=.
{txt}(182 real changes made)

{com}. 
. preserve
{txt}
{com}. keep if sp_ever!=.
{txt}(4,136 observations deleted)

{com}. collapse (mean) Protest, by(sp_ever secpoltime)
{res}{txt}
{com}. reshape wide Protest, i(secpoltime) j(sp_ever)
{txt}(j = 0 1)

Data{col 36}Long{col 43}->{col 48}Wide
{hline 77}
Number of observations     {res}         188   {txt}->   {res}131         
{txt}Number of variables        {res}           3   {txt}->   {res}3           
{txt}j variable (2 values)           {res}sp_ever   {txt}->   (dropped)
xij variables:
                                {res}Protest   {txt}->   {res}Protest0 Protest1
{txt}{hline 77}

{com}. graph twoway connect Protest* secpoltime if secpoltime < 0, scheme(plotplainblind) legend(label(1 "No Secret Police") label(2 "Secret Police") pos(6) col(2)) xtitle(" ")
{res}{txt}
{com}. restore
{txt}
{com}. 
. xtreg Protest i.sp_ever##c.secpoltime if secpoltime < 0
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     3,013
{txt}Group variable: {res}ccode                           {txt}Number of groups  = {res}       108

{txt}R-squared:                                      Obs per group:
     Within  = {res}0.1223                                         {txt}min = {res}         1
{txt}     Between = {res}0.0063                                         {txt}avg = {res}      27.9
{txt}     Overall = {res}0.0258                                         {txt}max = {res}        56

                                                {txt}Wald chi2({res}3{txt})      =  {res}   397.56
{txt}corr(u_i, X) = {res}0{txt} (assumed)                      Prob > chi2       =     {res}0.0000

{txt}{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}             Protest{col 22}{c |} Coefficient{col 34}  Std. err.{col 46}      z{col 54}   P>|z|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.sp_ever {c |}{col 22}{res}{space 2} .2396261{col 34}{space 2}  .171499{col 45}{space 1}    1.40{col 54}{space 3}0.162{col 62}{space 4}-.0965058{col 75}{space 3}  .575758
{txt}{space 10}secpoltime {c |}{col 22}{res}{space 2} .0140186{col 34}{space 2}  .000736{col 45}{space 1}   19.05{col 54}{space 3}0.000{col 62}{space 4} .0125761{col 75}{space 3} .0154611
{txt}{space 20} {c |}
sp_ever#c.secpoltime {c |}
{space 18}1  {c |}{col 22}{res}{space 2} .0021937{col 34}{space 2} .0032192{col 45}{space 1}    0.68{col 54}{space 3}0.496{col 62}{space 4}-.0041158{col 75}{space 3} .0085031
{txt}{space 20} {c |}
{space 15}_cons {c |}{col 22}{res}{space 2} .2135775{col 34}{space 2} .0892791{col 45}{space 1}    2.39{col 54}{space 3}0.017{col 62}{space 4} .0385937{col 75}{space 3} .3885614
{txt}{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
             sigma_u {c |} {res} .75696756
             {txt}sigma_e {c |} {res} .47191678
                 {txt}rho {c |} {res} .72011568{txt}   (fraction of variance due to u_i)
{hline 21}{c BT}{hline 64}

{com}. margins sp_ever, dydx(secpoltime)
{res}
{txt}{col 1}Average marginal effects{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,013}
{txt}{col 1}Model VCE: {res:Conventional}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2col:dy/dx wrt:}{res:secpoltime}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}secpoltime   {txt}{c |}
{space 5}sp_ever {c |}
{space 10}0  {c |}{col 14}{res}{space 2} .0140186{col 26}{space 2}  .000736{col 37}{space 1}   19.05{col 46}{space 3}0.000{col 54}{space 4} .0125761{col 67}{space 3} .0154611
{txt}{space 10}1  {c |}{col 14}{res}{space 2} .0162123{col 26}{space 2} .0031339{col 37}{space 1}    5.17{col 46}{space 3}0.000{col 54}{space 4}   .01007{col 67}{space 3} .0223546
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. marginsplot, recast(scatter) scheme(plotplainblind) aspect(1) xtitle("Secret Police ever existed") title(" ") ytitle(" Estimated Time Trend")
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:sp_ever}{p_end}
{res}{txt}
{com}. 
. * Section 4, In-text description of t-tests & table 5 - Checking differences in levels of covariates between treated and untreated units in the pre-treatment period & interacting Control Variables with Time
. ttest lag_ln_pop if secpoltime<0, by(sp_ever) unequal

{txt}Two-sample t test with unequal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. err.{col 47}Std. dev.{col 59}[95% conf. interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}  2,675{col 22} 15.31239{col 34} .0271058{col 46} 1.401924{col 58} 15.25924{col 70} 15.36554
       {txt}1 {c |}{res}{col 12}    481{col 22} 16.39895{col 34} .0616259{col 46} 1.351561{col 58} 16.27786{col 70} 16.52004
{txt}{hline 9}{c +}{hline 68}
Combined {c |}{res}{col 12}  3,156{col 22} 15.47799{col 34} .0257722{col 46} 1.447836{col 58} 15.42746{col 70} 15.52852
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-1.086565{col 34} .0673236{col 58}-1.218753{col 70}-.9543777
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res}-16.1394
{txt}H0: diff = 0                     Satterthwaite's degrees of freedom = {res} 679.127

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0000         {txt}Pr(|T| > |t|) = {res}0.0000          {txt}Pr(T > t) = {res}1.0000
{txt}
{com}. ttest lag_ln_gdppc if secpoltime<0, by(sp_ever) unequal

{txt}Two-sample t test with unequal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. err.{col 47}Std. dev.{col 59}[95% conf. interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}  2,666{col 22} 7.553639{col 34} .0285964{col 46}  1.47653{col 58} 7.497565{col 70} 7.609712
       {txt}1 {c |}{res}{col 12}    480{col 22} 8.640193{col 34} .0744384{col 46} 1.630863{col 58} 8.493927{col 70}  8.78646
{txt}{hline 9}{c +}{hline 68}
Combined {c |}{res}{col 12}  3,146{col 22} 7.719419{col 34}   .02765{col 46} 1.550865{col 58} 7.665206{col 70} 7.773633
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-1.086555{col 34} .0797422{col 58}-1.243148{col 70}-.9299613
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res}-13.6258
{txt}H0: diff = 0                     Satterthwaite's degrees of freedom = {res} 628.356

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0000         {txt}Pr(|T| > |t|) = {res}0.0000          {txt}Pr(T > t) = {res}1.0000
{txt}
{com}. ttest l12gr if secpoltime<0, by(sp_ever) unequal

{txt}Two-sample t test with unequal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. err.{col 47}Std. dev.{col 59}[95% conf. interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}  2,042{col 22} 1.527518{col 34} .1425868{col 46} 6.443283{col 58} 1.247887{col 70} 1.807149
       {txt}1 {c |}{res}{col 12}    214{col 22} 1.826242{col 34} .4093358{col 46} 5.988066{col 58} 1.019374{col 70}  2.63311
{txt}{hline 9}{c +}{hline 68}
Combined {c |}{res}{col 12}  2,256{col 22} 1.555854{col 34} .1347618{col 46}  6.40083{col 58} 1.291584{col 70} 1.820124
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.2987245{col 34} .4334591{col 58}-1.152151{col 70} .5547022
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -0.6892
{txt}H0: diff = 0                     Satterthwaite's degrees of freedom = {res} 267.415

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2457         {txt}Pr(|T| > |t|) = {res}0.4913          {txt}Pr(T > t) = {res}0.7543
{txt}
{com}. ttest lag_lexclpop if secpoltime<0, by(sp_ever) unequal

{txt}Two-sample t test with unequal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. err.{col 47}Std. dev.{col 59}[95% conf. interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}  2,653{col 22}  .212201{col 34}  .005132{col 46} .2643351{col 58} .2021379{col 70} .2222641
       {txt}1 {c |}{res}{col 12}    478{col 22} .2804447{col 34} .0146409{col 46} .3200967{col 58} .2516761{col 70} .3092133
{txt}{hline 9}{c +}{hline 68}
Combined {c |}{res}{col 12}  3,131{col 22} .2226196{col 34}  .004908{col 46} .2746266{col 58} .2129964{col 70} .2322427
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.0682437{col 34} .0155143{col 58}-.0987126{col 70}-.0377748
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -4.3988
{txt}H0: diff = 0                     Satterthwaite's degrees of freedom = {res} 599.788

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0000         {txt}Pr(|T| > |t|) = {res}0.0000          {txt}Pr(T > t) = {res}1.0000
{txt}
{com}. ttest nbr_protest if secpoltime<0, by(sp_ever) unequal

{txt}Two-sample t test with unequal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. err.{col 47}Std. dev.{col 59}[95% conf. interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}  2,586{col 22}-.3729218{col 34} .0194602{col 46} .9896061{col 58} -.411081{col 70}-.3347626
       {txt}1 {c |}{res}{col 12}    395{col 22} .1306197{col 34} .0550465{col 46} 1.094028{col 58} .0223981{col 70} .2388413
{txt}{hline 9}{c +}{hline 68}
Combined {c |}{res}{col 12}  2,981{col 22}-.3061996{col 34} .0186505{col 46}  1.01829{col 58}-.3427688{col 70}-.2696305
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.5035415{col 34} .0583851{col 58}-.6182533{col 70}-.3888297
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -8.6245
{txt}H0: diff = 0                     Satterthwaite's degrees of freedom = {res} 497.453

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0000         {txt}Pr(|T| > |t|) = {res}0.0000          {txt}Pr(T > t) = {res}1.0000
{txt}
{com}. ttest intrastate if secpoltime<0, by(sp_ever) unequal

{txt}Two-sample t test with unequal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. err.{col 47}Std. dev.{col 59}[95% conf. interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}  2,710{col 22} .1464945{col 34} .0067937{col 46} .3536665{col 58}  .133173{col 70} .1598159
       {txt}1 {c |}{res}{col 12}    506{col 22} .2075099{col 34} .0180456{col 46} .4059251{col 58} .1720562{col 70} .2429635
{txt}{hline 9}{c +}{hline 68}
Combined {c |}{res}{col 12}  3,216{col 22} .1560945{col 34}  .006401{col 46} .3630014{col 58}  .143544{col 70} .1686451
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.0610154{col 34} .0192821{col 58}-.0988774{col 70}-.0231534
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -3.1644
{txt}H0: diff = 0                     Satterthwaite's degrees of freedom = {res} 655.841

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0008         {txt}Pr(|T| > |t|) = {res}0.0016          {txt}Pr(T > t) = {res}0.9992
{txt}
{com}. ttest attempt if secpoltime<0, by(sp_ever) unequal

{txt}Two-sample t test with unequal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. err.{col 47}Std. dev.{col 59}[95% conf. interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}  2,710{col 22} .0845018{col 34} .0053439{col 46} .2781903{col 58} .0740233{col 70} .0949804
       {txt}1 {c |}{res}{col 12}    506{col 22} .1067194{col 34} .0137395{col 46} .3090617{col 58} .0797258{col 70} .1337129
{txt}{hline 9}{c +}{hline 68}
Combined {c |}{res}{col 12}  3,216{col 22} .0879975{col 34} .0049962{col 46} .2833353{col 58} .0782014{col 70} .0977936
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.0222175{col 34} .0147421{col 58}-.0511641{col 70} .0067291
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -1.5071
{txt}H0: diff = 0                     Satterthwaite's degrees of freedom = {res} 666.504

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0661         {txt}Pr(|T| > |t|) = {res}0.1323          {txt}Pr(T > t) = {res}0.9339
{txt}
{com}. 
. eststo clear
{txt}
{com}. eststo: reghdfe Protest secretpol_ cl.ln_pop##c.year cl.ln_gdppc##c.year l12gr cl.lexclpop##c.year c.nbr_protest##c.year i.intrastate##c.year i.attempt##c.year if sample==1, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: {res}year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}  14{txt},{res}    110{txt}){col 67}= {res}      3.17
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0003
{txt}{col 51}R-squared{col 67}= {res}    0.7988
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7875
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0667
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4169

{txt}{ralign 86:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}             Protest{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}secretpol_revised {c |}{col 22}{res}{space 2}-.2692576{col 34}{space 2} .0972214{col 45}{space 1}   -2.77{col 54}{space 3}0.007{col 62}{space 4}-.4619277{col 75}{space 3}-.0765876
{txt}{space 20} {c |}
{space 14}ln_pop {c |}
{space 17}L1. {c |}{col 22}{res}{space 2}-2.505226{col 34}{space 2}  3.01558{col 45}{space 1}   -0.83{col 54}{space 3}0.408{col 62}{space 4}-8.481399{col 75}{space 3} 3.470946
{txt}{space 20} {c |}
{space 16}year {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 4}cL.ln_pop#c.year {c |}{col 22}{res}{space 2} .0014847{col 34}{space 2} .0015453{col 45}{space 1}    0.96{col 54}{space 3}0.339{col 62}{space 4}-.0015778{col 75}{space 3} .0045471
{txt}{space 20} {c |}
{space 12}ln_gdppc {c |}
{space 17}L1. {c |}{col 22}{res}{space 2} 6.148225{col 34}{space 2} 4.372656{col 45}{space 1}    1.41{col 54}{space 3}0.163{col 62}{space 4}-2.517353{col 75}{space 3}  14.8138
{txt}{space 20} {c |}
{space 16}year {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 2}cL.ln_gdppc#c.year {c |}{col 22}{res}{space 2} -.003118{col 34}{space 2} .0021993{col 45}{space 1}   -1.42{col 54}{space 3}0.159{col 62}{space 4}-.0074766{col 75}{space 3} .0012405
{txt}{space 20} {c |}
{space 15}l12gr {c |}{col 22}{res}{space 2} -.004052{col 34}{space 2} .0025983{col 45}{space 1}   -1.56{col 54}{space 3}0.122{col 62}{space 4}-.0092013{col 75}{space 3} .0010972
{txt}{space 20} {c |}
{space 12}lexclpop {c |}
{space 17}L1. {c |}{col 22}{res}{space 2} 8.366138{col 34}{space 2}  16.0896{col 45}{space 1}    0.52{col 54}{space 3}0.604{col 62}{space 4}-23.51967{col 75}{space 3} 40.25195
{txt}{space 20} {c |}
{space 16}year {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 2}cL.lexclpop#c.year {c |}{col 22}{res}{space 2}-.0041903{col 34}{space 2} .0081016{col 45}{space 1}   -0.52{col 54}{space 3}0.606{col 62}{space 4}-.0202458{col 75}{space 3} .0118652
{txt}{space 20} {c |}
{space 9}nbr_protest {c |}{col 22}{res}{space 2}-.1214055{col 34}{space 2} 5.736158{col 45}{space 1}   -0.02{col 54}{space 3}0.983{col 62}{space 4}-11.48912{col 75}{space 3} 11.24631
{txt}{space 16}year {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
c.nbr_protest#c.year {c |}{col 22}{res}{space 2} .0000167{col 34}{space 2} .0029009{col 45}{space 1}    0.01{col 54}{space 3}0.995{col 62}{space 4}-.0057322{col 75}{space 3} .0057656
{txt}{space 20} {c |}
{space 8}1.intrastate {c |}{col 22}{res}{space 2} 10.69248{col 34}{space 2} 6.650304{col 45}{space 1}    1.61{col 54}{space 3}0.111{col 62}{space 4}-2.486863{col 75}{space 3} 23.87182
{txt}{space 16}year {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 3}intrastate#c.year {c |}
{space 18}1  {c |}{col 22}{res}{space 2}-.0052978{col 34}{space 2} .0033459{col 45}{space 1}   -1.58{col 54}{space 3}0.116{col 62}{space 4}-.0119287{col 75}{space 3} .0013331
{txt}{space 20} {c |}
{space 11}1.attempt {c |}{col 22}{res}{space 2} 2.425393{col 34}{space 2} 5.346638{col 45}{space 1}    0.45{col 54}{space 3}0.651{col 62}{space 4}-8.170389{col 75}{space 3} 13.02117
{txt}{space 16}year {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 6}attempt#c.year {c |}
{space 18}1  {c |}{col 22}{res}{space 2}-.0011745{col 34}{space 2} .0026995{col 45}{space 1}   -0.44{col 54}{space 3}0.664{col 62}{space 4}-.0065242{col 75}{space 3} .0041752
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. esttab using secpol_protest_robTRENDS, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("Model includes Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_robTRENDS.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_robTRENDS.rtf"'})

{com}. 
. 
. * Section 4, Table 6 Supplementary Materials - Alternative Diff-in-Diff estimator - Borusyak et al. 2022
. eststo clear
{txt}
{com}. eststo: did_imputation Protest ccode year first_secpol if sample==1, controls(lag_ln_pop lag_ln_gdppc l12gr lag_lexclpop nbr_protest intrastate attempt) fe(ccode year) autosample cluster(ccode) maxit(1000) tol(1e-5)
Warning: part of the sample was dropped for the following coefficients because FE could not be imputed: tau.

{txt}{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:2,618}
{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     Protest{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}tau {c |}{col 14}{res}{space 2}-.3752583{col 26}{space 2} .1087387{col 37}{space 1}   -3.45{col 46}{space 3}0.001{col 54}{space 4}-.5883822{col 67}{space 3}-.1621344
{txt}{space 2}lag_ln_pop {c |}{col 14}{res}{space 2} .5229675{col 26}{space 2} .3775529{col 37}{space 1}    1.39{col 46}{space 3}0.166{col 54}{space 4}-.2170227{col 67}{space 3} 1.262958
{txt}lag_ln_gdppc {c |}{col 14}{res}{space 2}-.1119387{col 26}{space 2} .0809959{col 37}{space 1}   -1.38{col 46}{space 3}0.167{col 54}{space 4}-.2706877{col 67}{space 3} .0468103
{txt}{space 7}l12gr {c |}{col 14}{res}{space 2}-.0015199{col 26}{space 2} .0030534{col 37}{space 1}   -0.50{col 46}{space 3}0.619{col 54}{space 4}-.0075045{col 67}{space 3} .0044647
{txt}lag_lexclpop {c |}{col 14}{res}{space 2} .1030601{col 26}{space 2} .0962672{col 37}{space 1}    1.07{col 46}{space 3}0.284{col 54}{space 4}-.0856201{col 67}{space 3} .2917404
{txt}{space 1}nbr_protest {c |}{col 14}{res}{space 2}-.0042294{col 26}{space 2} .0983863{col 37}{space 1}   -0.04{col 46}{space 3}0.966{col 54}{space 4} -.197063{col 67}{space 3} .1886043
{txt}{space 2}intrastate {c |}{col 14}{res}{space 2} .1236673{col 26}{space 2} .0635825{col 37}{space 1}    1.94{col 46}{space 3}0.052{col 54}{space 4}-.0009521{col 67}{space 3} .2482868
{txt}{space 5}attempt {c |}{col 14}{res}{space 2} .0658518{col 26}{space 2} .0382252{col 37}{space 1}    1.72{col 46}{space 3}0.085{col 54}{space 4}-.0090681{col 67}{space 3} .1407718
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est1{txt} stored)

{com}. esttab using secpol_protest_borusyak, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("Model includes Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_borusyak.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_borusyak.rtf"'})

{com}. 
. 
. * Section 4, Figure 2 Supplementary Materials - Alternative Diff-in-Diff estimator – Sun and Abraham 2022
. gen ry = year-first_secpol
{txt}(9,399 missing values generated)

{com}. gen never_secpol = (first_secpol == .)
{txt}
{com}. 
.        forvalues k = 15(-1)2 {c -(}
{txt}  2{com}.            gen g_`k' = ry == -`k'
{txt}  3{com}.         {c )-}
{txt}
{com}.         forvalues k = 0/15 {c -(}
{txt}  2{com}.              gen g`k' = ry == `k'
{txt}  3{com}.         {c )-}
{txt}
{com}. 
. gen bin_ry1= (g_15==1 | g_14==1 | g_13==1 | g_12==1 | g_11==1)
{txt}
{com}. gen bin_ry2= (g_10==1 | g_9==1  | g_8==1  | g_7==1  | g_6==1)
{txt}
{com}. gen bin_ry3= (g_5==1  | g_4==1  | g_3==1  | g_2==1)
{txt}
{com}. gen bin_ry4= (g0==1   | g1==1   | g2==1   | g3==1   | g4==1)
{txt}
{com}. gen bin_ry5= (g5==1   | g6==1   | g7==1   | g8==1   | g9==1)
{txt}
{com}. gen bin_ry6= (g10==1  | g11==1  | g12==1  | g13==1  | g14==1)
{txt}
{com}. 
. eventstudyinteract Protest bin_ry1-bin_ry6 if sample==1, cohort(first_secpol) control_cohort(never_secpol) covariates(l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt) absorb(i.ccode i.year) vce(cluster ccode)
{txt}(obs=1,245)
{res}
{txt}{col 1}IW estimates for dynamic effects{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:3,252}
{txt}{col 1}Absorbing 2 HDFE groups{col 57}{lalign 13:{help j_robustsingular##|_new:F(89, 110)}}{col 70} = {res}{ralign 6:.}
{txt}{col 57}{lalign 13:Prob > F}{col 70} = {res}{ralign 6:.}
{txt}{col 57}{lalign 13:R-squared}{col 70} = {res}{ralign 6:0.8172}
{txt}{col 57}{lalign 13:Adj R-squared}{col 70} = {res}{ralign 6:0.8022}
{txt}{col 57}{lalign 13:Root MSE}{col 70} = {res}{ralign 6:0.4023}
{txt}{ralign 78:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     Protest{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}bin_ry1 {c |}{col 14}{res}{space 2} .1536194{col 26}{space 2} .0805994{col 37}{space 1}    1.91{col 46}{space 3}0.059{col 54}{space 4}-.0061097{col 67}{space 3} .3133485
{txt}{space 5}bin_ry2 {c |}{col 14}{res}{space 2} .1930663{col 26}{space 2} .1151359{col 37}{space 1}    1.68{col 46}{space 3}0.096{col 54}{space 4}-.0351061{col 67}{space 3} .4212387
{txt}{space 5}bin_ry3 {c |}{col 14}{res}{space 2} .2013793{col 26}{space 2} .1313003{col 37}{space 1}    1.53{col 46}{space 3}0.128{col 54}{space 4}-.0588271{col 67}{space 3} .4615858
{txt}{space 5}bin_ry4 {c |}{col 14}{res}{space 2}-.1099745{col 26}{space 2}  .097738{col 37}{space 1}   -1.13{col 46}{space 3}0.263{col 54}{space 4}-.3036684{col 67}{space 3} .0837193
{txt}{space 5}bin_ry5 {c |}{col 14}{res}{space 2}-.2501958{col 26}{space 2} .0927008{col 37}{space 1}   -2.70{col 46}{space 3}0.008{col 54}{space 4}-.4339069{col 67}{space 3}-.0664846
{txt}{space 5}bin_ry6 {c |}{col 14}{res}{space 2}-.1803388{col 26}{space 2} .0716121{col 37}{space 1}   -2.52{col 46}{space 3}0.013{col 54}{space 4}-.3222572{col 67}{space 3}-.0384205
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. matrix C = e(b_iw)
{txt}
{com}. mata st_matrix("A",sqrt(diagonal(st_matrix("e(V_iw)"))))
{res}{txt}
{com}. matrix C = C \ A'
{txt}
{com}. matrix list C
{res}
{txt}C[2,6]
       bin_ry1     bin_ry2     bin_ry3     bin_ry4     bin_ry5     bin_ry6
r1 {res}   .1536194    .1930663   .20137933  -.10997451  -.25019577  -.18033884
{txt}c1 {res}  .08059941   .11513592   .13130034   .09773804   .09270076   .07161207
{reset}
{com}. coefplot matrix(C[1]), se(C[2]) levels(95) xline(0) scheme(plotplainblind) aspect(1) ylabel(1 "t-15 - t-11" 2 "t-10 - t-16" 3 "t-5 - t-2" 4 "t - t+4" 5 "t+5 - t+9" 6 "t+10 - t+14") xtitle("Change in Protest")
{res}{txt}
{com}. 
. 
. * Section 5, Table 7 Supplementary Materials - Alternative Dependent Variables
. eststo clear
{txt}
{com}. eststo: reghdfe v2cseeorgs secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,271
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    111{txt}){col 67}= {res}      2.13
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0389
{txt}{col 51}R-squared{col 67}= {res}    0.7826
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7709
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0577
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.5955

{txt}{ralign 83:(Std. err. adjusted for {res:112} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}       v2cseeorgs{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2} -.546285{col 31}{space 2} .2075877{col 42}{space 1}   -2.63{col 51}{space 3}0.010{col 59}{space 4}-.9576338{col 72}{space 3}-.1349362
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1208944{col 31}{space 2} .4196948{col 42}{space 1}    0.29{col 51}{space 3}0.774{col 59}{space 4}-.7107589{col 72}{space 3} .9525477
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.1013717{col 31}{space 2}  .121836{col 42}{space 1}   -0.83{col 51}{space 3}0.407{col 59}{space 4}-.3427979{col 72}{space 3} .1400545
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0019901{col 31}{space 2} .0032307{col 42}{space 1}   -0.62{col 51}{space 3}0.539{col 59}{space 4}-.0083919{col 72}{space 3} .0044116
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.2795571{col 31}{space 2} .2856618{col 42}{space 1}   -0.98{col 51}{space 3}0.330{col 59}{space 4} -.845615{col 72}{space 3} .2865007
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .0513379{col 31}{space 2} .1072424{col 42}{space 1}    0.48{col 51}{space 3}0.633{col 59}{space 4}-.1611701{col 72}{space 3}  .263846
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-.0326585{col 31}{space 2} .0749368{col 42}{space 1}   -0.44{col 51}{space 3}0.664{col 59}{space 4}-.1811507{col 72}{space 3} .1158337
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1532592{col 31}{space 2} .0588732{col 42}{space 1}    2.60{col 51}{space 3}0.010{col 59}{space 4} .0365981{col 72}{space 3} .2699204
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      112{col 27}{space 1}      112{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. eststo: reghdfe v2csreprss secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,271
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    111{txt}){col 67}= {res}      1.96
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0583
{txt}{col 51}R-squared{col 67}= {res}    0.7725
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7602
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0534
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.5484

{txt}{ralign 83:(Std. err. adjusted for {res:112} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}       v2csreprss{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.5129182{col 31}{space 2} .2022091{col 42}{space 1}   -2.54{col 51}{space 3}0.013{col 59}{space 4} -.913609{col 72}{space 3}-.1122274
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.2432499{col 31}{space 2} .3393917{col 42}{space 1}   -0.72{col 51}{space 3}0.475{col 59}{space 4}-.9157772{col 72}{space 3} .4292774
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0263799{col 31}{space 2} .1071934{col 42}{space 1}    0.25{col 51}{space 3}0.806{col 59}{space 4}-.1860309{col 72}{space 3} .2387907
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0030663{col 31}{space 2} .0032588{col 42}{space 1}   -0.94{col 51}{space 3}0.349{col 59}{space 4}-.0095238{col 72}{space 3} .0033912
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.2139671{col 31}{space 2} .1991304{col 42}{space 1}   -1.07{col 51}{space 3}0.285{col 59}{space 4}-.6085573{col 72}{space 3} .1806231
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.1053718{col 31}{space 2} .1087257{col 42}{space 1}   -0.97{col 51}{space 3}0.335{col 59}{space 4} -.320819{col 72}{space 3} .1100753
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-.0842196{col 31}{space 2} .0730055{col 42}{space 1}   -1.15{col 51}{space 3}0.251{col 59}{space 4}-.2288849{col 72}{space 3} .0604456
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1059439{col 31}{space 2} .0516039{col 42}{space 1}    2.05{col 51}{space 3}0.042{col 59}{space 4} .0036872{col 72}{space 3} .2082005
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      112{col 27}{space 1}      112{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. eststo: reghdfe v2csprtcpt secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,271
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    111{txt}){col 67}= {res}      2.15
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0371
{txt}{col 51}R-squared{col 67}= {res}    0.8038
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7933
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0661
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.5575

{txt}{ralign 83:(Std. err. adjusted for {res:112} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}       v2csprtcpt{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.4764229{col 31}{space 2} .2127651{col 42}{space 1}   -2.24{col 51}{space 3}0.027{col 59}{space 4}-.8980312{col 72}{space 3}-.0548146
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0764789{col 31}{space 2} .4304842{col 42}{space 1}    0.18{col 51}{space 3}0.859{col 59}{space 4}-.7765543{col 72}{space 3} .9295121
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.1268227{col 31}{space 2} .1187447{col 42}{space 1}   -1.07{col 51}{space 3}0.288{col 59}{space 4}-.3621233{col 72}{space 3}  .108478
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0027829{col 31}{space 2} .0032564{col 42}{space 1}   -0.85{col 51}{space 3}0.395{col 59}{space 4}-.0092356{col 72}{space 3} .0036699
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.3470819{col 31}{space 2} .2400423{col 42}{space 1}   -1.45{col 51}{space 3}0.151{col 59}{space 4}-.8227417{col 72}{space 3}  .128578
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .1253748{col 31}{space 2} .0932226{col 42}{space 1}    1.34{col 51}{space 3}0.181{col 59}{space 4} -.059352{col 72}{space 3} .3101016
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .0502547{col 31}{space 2} .0735591{col 42}{space 1}    0.68{col 51}{space 3}0.496{col 59}{space 4}-.0955075{col 72}{space 3} .1960169
{txt}{space 10}attempt {c |}{col 19}{res}{space 2}   .13499{col 31}{space 2}  .064742{col 42}{space 1}    2.09{col 51}{space 3}0.039{col 59}{space 4} .0066995{col 72}{space 3} .2632806
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      112{col 27}{space 1}      112{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. eststo: reghdfe v2csantimv secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,271
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    111{txt}){col 67}= {res}      5.35
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.7063
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6905
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0900
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.6894

{txt}{ralign 83:(Std. err. adjusted for {res:112} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}       v2csantimv{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}  -.30594{col 31}{space 2} .2534573{col 42}{space 1}   -1.21{col 51}{space 3}0.230{col 59}{space 4}-.8081825{col 72}{space 3} .1963025
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}   .35509{col 31}{space 2} .3584584{col 42}{space 1}    0.99{col 51}{space 3}0.324{col 59}{space 4}-.3552193{col 72}{space 3} 1.065399
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}  .024969{col 31}{space 2} .1005536{col 42}{space 1}    0.25{col 51}{space 3}0.804{col 59}{space 4}-.1742847{col 72}{space 3} .2242227
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0063865{col 31}{space 2} .0040479{col 42}{space 1}   -1.58{col 51}{space 3}0.117{col 59}{space 4}-.0144077{col 72}{space 3} .0016347
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0511482{col 31}{space 2} .3463316{col 42}{space 1}   -0.15{col 51}{space 3}0.883{col 59}{space 4}-.7374273{col 72}{space 3}  .635131
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .0928428{col 31}{space 2} .1011744{col 42}{space 1}    0.92{col 51}{space 3}0.361{col 59}{space 4} -.107641{col 72}{space 3} .2933266
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .6095495{col 31}{space 2} .1291212{col 42}{space 1}    4.72{col 51}{space 3}0.000{col 59}{space 4} .3536873{col 72}{space 3} .8654117
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .2204589{col 31}{space 2} .0629089{col 42}{space 1}    3.50{col 51}{space 3}0.001{col 59}{space 4} .0958007{col 72}{space 3} .3451171
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      112{col 27}{space 1}      112{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. esttab using secpol_protest_vdemdv, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("All models include Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_vdemdv.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_vdemdv.rtf"'})

{com}. 
. 
. * Section 6, Table 8 Supplementary Materials - Additional Control Variables
. eststo clear
{txt}
{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.theta_mean, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      3.55
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0007
{txt}{col 51}R-squared{col 67}= {res}    0.7971
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7861
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0588
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4184

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2893005{col 31}{space 2} .0980215{col 42}{space 1}   -2.95{col 51}{space 3}0.004{col 59}{space 4}-.4835561{col 72}{space 3} -.095045
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .2924986{col 31}{space 2} .2611916{col 42}{space 1}    1.12{col 51}{space 3}0.265{col 59}{space 4}-.2251219{col 72}{space 3} .8101191
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0035631{col 31}{space 2} .0732016{col 42}{space 1}   -0.05{col 51}{space 3}0.961{col 59}{space 4}-.1486315{col 72}{space 3} .1415053
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0034657{col 31}{space 2} .0025436{col 42}{space 1}   -1.36{col 51}{space 3}0.176{col 59}{space 4}-.0085065{col 72}{space 3} .0015751
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0335736{col 31}{space 2}  .099188{col 42}{space 1}    0.34{col 51}{space 3}0.736{col 59}{space 4}-.1629937{col 72}{space 3}  .230141
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0896898{col 31}{space 2} .0690586{col 42}{space 1}   -1.30{col 51}{space 3}0.197{col 59}{space 4}-.2265478{col 72}{space 3} .0471681
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1190679{col 31}{space 2} .0527302{col 42}{space 1}    2.26{col 51}{space 3}0.026{col 59}{space 4} .0145691{col 72}{space 3} .2235667
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1073356{col 31}{space 2} .0382803{col 42}{space 1}    2.80{col 51}{space 3}0.006{col 59}{space 4} .0314731{col 72}{space 3} .1831982
{txt}{space 17} {c |}
{space 7}theta_mean {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0743882{col 31}{space 2} .0355965{col 42}{space 1}   -2.09{col 51}{space 3}0.039{col 59}{space 4}-.1449321{col 72}{space 3}-.0038442
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.ln_counterb, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 1 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     2,492
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    106{txt}){col 67}= {res}      2.51
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0119
{txt}{col 51}R-squared{col 67}= {res}    0.8124
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8000
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0472
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       107{txt}{col 51}Root MSE{col 67}= {res}    0.4003

{txt}{ralign 83:(Std. err. adjusted for {res:107} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.3290256{col 31}{space 2} .1106985{col 42}{space 1}   -2.97{col 51}{space 3}0.004{col 59}{space 4}-.5484962{col 72}{space 3} -.109555
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0085138{col 31}{space 2} .2232952{col 42}{space 1}    0.04{col 51}{space 3}0.970{col 59}{space 4}-.4341907{col 72}{space 3} .4512183
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0232509{col 31}{space 2}  .081161{col 42}{space 1}    0.29{col 51}{space 3}0.775{col 59}{space 4}-.1376588{col 72}{space 3} .1841605
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0059828{col 31}{space 2} .0028543{col 42}{space 1}   -2.10{col 51}{space 3}0.038{col 59}{space 4}-.0116417{col 72}{space 3}-.0003238
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0704783{col 31}{space 2}  .095226{col 42}{space 1}    0.74{col 51}{space 3}0.461{col 59}{space 4}-.1183166{col 72}{space 3} .2592732
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0382547{col 31}{space 2} .0862491{col 42}{space 1}   -0.44{col 51}{space 3}0.658{col 59}{space 4}-.2092519{col 72}{space 3} .1327424
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1234323{col 31}{space 2} .0562714{col 42}{space 1}    2.19{col 51}{space 3}0.030{col 59}{space 4} .0118689{col 72}{space 3} .2349958
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .0649712{col 31}{space 2} .0482201{col 42}{space 1}    1.35{col 51}{space 3}0.181{col 59}{space 4}-.0306299{col 72}{space 3} .1605723
{txt}{space 17} {c |}
{space 6}ln_counterb {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1091416{col 31}{space 2} .1513143{col 42}{space 1}    0.72{col 51}{space 3}0.472{col 59}{space 4}-.1908538{col 72}{space 3}  .409137
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      107{col 27}{space 1}      107{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       40{col 27}{space 1}        1{col 39}{result}{space 1}       39{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.xpers, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 1 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     2,744
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}     96{txt}){col 67}= {res}      2.24
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0257
{txt}{col 51}R-squared{col 67}= {res}    0.7955
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7835
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0367
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}        97{txt}{col 51}Root MSE{col 67}= {res}    0.4185

{txt}{ralign 83:(Std. err. adjusted for {res:97} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2580809{col 31}{space 2} .1123086{col 42}{space 1}   -2.30{col 51}{space 3}0.024{col 59}{space 4}-.4810116{col 72}{space 3}-.0351501
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .2625361{col 31}{space 2} .3030257{col 42}{space 1}    0.87{col 51}{space 3}0.388{col 59}{space 4}-.3389652{col 72}{space 3} .8640374
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0120546{col 31}{space 2} .0796008{col 42}{space 1}   -0.15{col 51}{space 3}0.880{col 59}{space 4} -.170061{col 72}{space 3} .1459518
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0042533{col 31}{space 2} .0032084{col 42}{space 1}   -1.33{col 51}{space 3}0.188{col 59}{space 4} -.010622{col 72}{space 3} .0021154
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0646618{col 31}{space 2} .1044585{col 42}{space 1}    0.62{col 51}{space 3}0.537{col 59}{space 4}-.1426867{col 72}{space 3} .2720104
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0238504{col 31}{space 2} .0920793{col 42}{space 1}   -0.26{col 51}{space 3}0.796{col 59}{space 4}-.2066264{col 72}{space 3} .1589255
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .0983257{col 31}{space 2} .0570834{col 42}{space 1}    1.72{col 51}{space 3}0.088{col 59}{space 4}-.0149839{col 72}{space 3} .2116353
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1297624{col 31}{space 2} .0502683{col 42}{space 1}    2.58{col 51}{space 3}0.011{col 59}{space 4} .0299805{col 72}{space 3} .2295442
{txt}{space 17} {c |}
{space 12}xpers {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0487141{col 31}{space 2} .1474237{col 42}{space 1}   -0.33{col 51}{space 3}0.742{col 59}{space 4}-.3413478{col 72}{space 3} .2439197
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}       97{col 27}{space 1}       97{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.urbanpop, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      3.46
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0009
{txt}{col 51}R-squared{col 67}= {res}    0.7959
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7848
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0534
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4196

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2705214{col 31}{space 2} .0962135{col 42}{space 1}   -2.81{col 51}{space 3}0.006{col 59}{space 4} -.461194{col 72}{space 3}-.0798487
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3238468{col 31}{space 2} .2689796{col 42}{space 1}    1.20{col 51}{space 3}0.231{col 59}{space 4}-.2092076{col 72}{space 3} .8569013
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0226486{col 31}{space 2} .0744033{col 42}{space 1}   -0.30{col 51}{space 3}0.761{col 59}{space 4}-.1700985{col 72}{space 3} .1248014
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0042657{col 31}{space 2} .0025399{col 42}{space 1}   -1.68{col 51}{space 3}0.096{col 59}{space 4}-.0092991{col 72}{space 3} .0007677
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0135996{col 31}{space 2} .1017179{col 42}{space 1}    0.13{col 51}{space 3}0.894{col 59}{space 4}-.1879815{col 72}{space 3} .2151806
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0808296{col 31}{space 2} .0715072{col 42}{space 1}   -1.13{col 51}{space 3}0.261{col 59}{space 4}-.2225401{col 72}{space 3}  .060881
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1581558{col 31}{space 2} .0525568{col 42}{space 1}    3.01{col 51}{space 3}0.003{col 59}{space 4} .0540005{col 72}{space 3} .2623112
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1078728{col 31}{space 2} .0385941{col 42}{space 1}    2.80{col 51}{space 3}0.006{col 59}{space 4} .0313883{col 72}{space 3} .1843574
{txt}{space 17} {c |}
{space 9}urbanpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0067693{col 31}{space 2} .0070501{col 42}{space 1}   -0.96{col 51}{space 3}0.339{col 59}{space 4} -.020741{col 72}{space 3} .0072024
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. esttab using secpol_protest_rob2, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("All models include Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_rob2.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_rob2.rtf"'})

{com}. 
. 
. * Section 6, Table 9 Supplementary Materials - Additional Control Variables: State Capacity
. eststo clear
{txt}
{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.Capacity, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,250
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      3.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0008
{txt}{col 51}R-squared{col 67}= {res}    0.7951
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7840
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0500
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4202

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2721496{col 31}{space 2} .0970225{col 42}{space 1}   -2.81{col 51}{space 3}0.006{col 59}{space 4}-.4644254{col 72}{space 3}-.0798737
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3014883{col 31}{space 2} .2660457{col 42}{space 1}    1.13{col 51}{space 3}0.260{col 59}{space 4}-.2257518{col 72}{space 3} .8287284
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0219739{col 31}{space 2} .0713697{col 42}{space 1}   -0.31{col 51}{space 3}0.759{col 59}{space 4}-.1634119{col 72}{space 3} .1194641
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0036444{col 31}{space 2} .0025184{col 42}{space 1}   -1.45{col 51}{space 3}0.151{col 59}{space 4}-.0086354{col 72}{space 3} .0013465
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0192659{col 31}{space 2} .1001284{col 42}{space 1}    0.19{col 51}{space 3}0.848{col 59}{space 4} -.179165{col 72}{space 3} .2176968
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0829521{col 31}{space 2} .0733893{col 42}{space 1}   -1.13{col 51}{space 3}0.261{col 59}{space 4}-.2283925{col 72}{space 3} .0624883
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1624506{col 31}{space 2} .0535405{col 42}{space 1}    3.03{col 51}{space 3}0.003{col 59}{space 4}  .056346{col 72}{space 3} .2685552
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1094232{col 31}{space 2}  .039512{col 42}{space 1}    2.77{col 51}{space 3}0.007{col 59}{space 4} .0311197{col 72}{space 3} .1877267
{txt}{space 17} {c |}
{space 9}Capacity {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0260733{col 31}{space 2} .0922704{col 42}{space 1}   -0.28{col 51}{space 3}0.778{col 59}{space 4}-.2089316{col 72}{space 3} .1567851
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.v2clrspct, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,250
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      3.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0008
{txt}{col 51}R-squared{col 67}= {res}    0.7952
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7841
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0507
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4201

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2736722{col 31}{space 2} .0983247{col 42}{space 1}   -2.78{col 51}{space 3}0.006{col 59}{space 4}-.4685287{col 72}{space 3}-.0788156
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3050042{col 31}{space 2} .2617939{col 42}{space 1}    1.17{col 51}{space 3}0.247{col 59}{space 4}-.2138099{col 72}{space 3} .8238183
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0254108{col 31}{space 2} .0711287{col 42}{space 1}   -0.36{col 51}{space 3}0.722{col 59}{space 4}-.1663712{col 72}{space 3} .1155496
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0036259{col 31}{space 2} .0025146{col 42}{space 1}   -1.44{col 51}{space 3}0.152{col 59}{space 4}-.0086092{col 72}{space 3} .0013575
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0224336{col 31}{space 2}  .101418{col 42}{space 1}    0.22{col 51}{space 3}0.825{col 59}{space 4} -.178553{col 72}{space 3} .2234202
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0839016{col 31}{space 2} .0731859{col 42}{space 1}   -1.15{col 51}{space 3}0.254{col 59}{space 4}-.2289389{col 72}{space 3} .0611358
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1625472{col 31}{space 2} .0531536{col 42}{space 1}    3.06{col 51}{space 3}0.003{col 59}{space 4} .0572092{col 72}{space 3} .2678852
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1106249{col 31}{space 2} .0399919{col 42}{space 1}    2.77{col 51}{space 3}0.007{col 59}{space 4} .0313703{col 72}{space 3} .1898795
{txt}{space 17} {c |}
{space 8}v2clrspct {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0235869{col 31}{space 2} .0482221{col 42}{space 1}   -0.49{col 51}{space 3}0.626{col 59}{space 4}-.1191517{col 72}{space 3}  .071978
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.v2stfisccap, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 1 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,038
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    106{txt}){col 67}= {res}      3.41
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0010
{txt}{col 51}R-squared{col 67}= {res}    0.7977
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7863
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0533
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       107{txt}{col 51}Root MSE{col 67}= {res}    0.4176

{txt}{ralign 83:(Std. err. adjusted for {res:107} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2} -.280742{col 31}{space 2} .1085226{col 42}{space 1}   -2.59{col 51}{space 3}0.011{col 59}{space 4}-.4958986{col 72}{space 3}-.0655854
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .2827701{col 31}{space 2} .2706869{col 42}{space 1}    1.04{col 51}{space 3}0.299{col 59}{space 4} -.253893{col 72}{space 3} .8194332
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0370198{col 31}{space 2} .0708779{col 42}{space 1}   -0.52{col 51}{space 3}0.603{col 59}{space 4}-.1775422{col 72}{space 3} .1035025
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0033993{col 31}{space 2} .0025805{col 42}{space 1}   -1.32{col 51}{space 3}0.191{col 59}{space 4}-.0085155{col 72}{space 3} .0017168
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0405834{col 31}{space 2} .0993839{col 42}{space 1}    0.41{col 51}{space 3}0.684{col 59}{space 4}-.1564549{col 72}{space 3} .2376216
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0389453{col 31}{space 2}  .073421{col 42}{space 1}   -0.53{col 51}{space 3}0.597{col 59}{space 4}-.1845097{col 72}{space 3}  .106619
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1950472{col 31}{space 2}  .053303{col 42}{space 1}    3.66{col 51}{space 3}0.000{col 59}{space 4} .0893687{col 72}{space 3} .3007256
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1095836{col 31}{space 2} .0414002{col 42}{space 1}    2.65{col 51}{space 3}0.009{col 59}{space 4} .0275037{col 72}{space 3} .1916635
{txt}{space 17} {c |}
{space 6}v2stfisccap {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0196573{col 31}{space 2} .0651404{col 42}{space 1}    0.30{col 51}{space 3}0.763{col 59}{space 4}  -.10949{col 72}{space 3} .1488046
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      107{col 27}{space 1}      107{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.v2terr, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,249
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      3.67
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0005
{txt}{col 51}R-squared{col 67}= {res}    0.7963
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7853
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0557
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4189

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2593897{col 31}{space 2}  .098255{col 42}{space 1}   -2.64{col 51}{space 3}0.009{col 59}{space 4} -.454108{col 72}{space 3}-.0646714
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3174315{col 31}{space 2} .2631739{col 42}{space 1}    1.21{col 51}{space 3}0.230{col 59}{space 4}-.2041174{col 72}{space 3} .8389804
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0208123{col 31}{space 2} .0708314{col 42}{space 1}   -0.29{col 51}{space 3}0.769{col 59}{space 4}-.1611835{col 72}{space 3}  .119559
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0031448{col 31}{space 2} .0025102{col 42}{space 1}   -1.25{col 51}{space 3}0.213{col 59}{space 4}-.0081194{col 72}{space 3} .0018299
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0111132{col 31}{space 2}  .098916{col 42}{space 1}    0.11{col 51}{space 3}0.911{col 59}{space 4}-.1849152{col 72}{space 3} .2071415
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0637241{col 31}{space 2} .0706817{col 42}{space 1}   -0.90{col 51}{space 3}0.369{col 59}{space 4}-.2037987{col 72}{space 3} .0763505
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1376498{col 31}{space 2} .0555935{col 42}{space 1}    2.48{col 51}{space 3}0.015{col 59}{space 4} .0274765{col 72}{space 3} .2478232
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1120573{col 31}{space 2} .0399474{col 42}{space 1}    2.81{col 51}{space 3}0.006{col 59}{space 4} .0328909{col 72}{space 3} .1912237
{txt}{space 17} {c |}
{space 11}v2terr {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.1239786{col 31}{space 2} .0767607{col 42}{space 1}   -1.62{col 51}{space 3}0.109{col 59}{space 4}-.2761004{col 72}{space 3} .0281431
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. esttab using secpol_protest_statecap, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("All models include Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_statecap.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_statecap.rtf"'})

{com}. 
. 
. * Section 6, Table 10 Supplementary Materials - Additional Control Variables: Civil society strength
. eststo clear
{txt}
{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.v2csstruc_1, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      3.72
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.7953
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0504
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4202

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2753775{col 31}{space 2} .0959835{col 42}{space 1}   -2.87{col 51}{space 3}0.005{col 59}{space 4}-.4655943{col 72}{space 3}-.0851607
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .2995567{col 31}{space 2} .2579042{col 42}{space 1}    1.16{col 51}{space 3}0.248{col 59}{space 4}-.2115488{col 72}{space 3} .8106623
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0278091{col 31}{space 2} .0707702{col 42}{space 1}   -0.39{col 51}{space 3}0.695{col 59}{space 4}-.1680591{col 72}{space 3} .1124409
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0036697{col 31}{space 2} .0025063{col 42}{space 1}   -1.46{col 51}{space 3}0.146{col 59}{space 4}-.0086367{col 72}{space 3} .0012972
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0234955{col 31}{space 2} .0999691{col 42}{space 1}    0.24{col 51}{space 3}0.815{col 59}{space 4}-.1746199{col 72}{space 3} .2216109
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0800963{col 31}{space 2} .0739219{col 42}{space 1}   -1.08{col 51}{space 3}0.281{col 59}{space 4}-.2265921{col 72}{space 3} .0663996
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1660639{col 31}{space 2} .0541127{col 42}{space 1}    3.07{col 51}{space 3}0.003{col 59}{space 4} .0588253{col 72}{space 3} .2733026
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1100331{col 31}{space 2} .0395376{col 42}{space 1}    2.78{col 51}{space 3}0.006{col 59}{space 4} .0316788{col 72}{space 3} .1883873
{txt}{space 17} {c |}
{space 6}v2csstruc_1 {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0745084{col 31}{space 2} .1611425{col 42}{space 1}   -0.46{col 51}{space 3}0.645{col 59}{space 4} -.393855{col 72}{space 3} .2448382
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt l.v2csantimv, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      5.54
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.8064
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7959
{txt}{col 51}Within R-sq.{col 67}= {res}    0.1021
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4086

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2294259{col 31}{space 2} .0943126{col 42}{space 1}   -2.43{col 51}{space 3}0.017{col 59}{space 4}-.4163313{col 72}{space 3}-.0425205
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .2708318{col 31}{space 2} .2396279{col 42}{space 1}    1.13{col 51}{space 3}0.261{col 59}{space 4}-.2040545{col 72}{space 3} .7457182
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0245993{col 31}{space 2} .0689976{col 42}{space 1}   -0.36{col 51}{space 3}0.722{col 59}{space 4}-.1613364{col 72}{space 3} .1121377
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0020137{col 31}{space 2} .0023742{col 42}{space 1}   -0.85{col 51}{space 3}0.398{col 59}{space 4}-.0067187{col 72}{space 3} .0026913
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0252483{col 31}{space 2} .0955707{col 42}{space 1}    0.26{col 51}{space 3}0.792{col 59}{space 4}-.1641505{col 72}{space 3} .2146471
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0942832{col 31}{space 2} .0694816{col 42}{space 1}   -1.36{col 51}{space 3}0.178{col 59}{space 4}-.2319795{col 72}{space 3} .0434131
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .0788791{col 31}{space 2}  .052674{col 42}{space 1}    1.50{col 51}{space 3}0.137{col 59}{space 4}-.0255083{col 72}{space 3} .1832666
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .0928113{col 31}{space 2} .0369949{col 42}{space 1}    2.51{col 51}{space 3}0.014{col 59}{space 4} .0194961{col 72}{space 3} .1661266
{txt}{space 17} {c |}
{space 7}v2csantimv {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1419415{col 31}{space 2} .0308711{col 42}{space 1}    4.60{col 51}{space 3}0.000{col 59}{space 4} .0807622{col 72}{space 3} .2031209
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt everdemoc, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   9{txt},{res}    110{txt}){col 67}= {res}      3.54
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0007
{txt}{col 51}R-squared{col 67}= {res}    0.7952
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7841
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0500
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4203

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          Protest{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.2758264{col 31}{space 2} .0965066{col 42}{space 1}   -2.86{col 51}{space 3}0.005{col 59}{space 4}-.4670799{col 72}{space 3}-.0845729
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .3039449{col 31}{space 2} .2609063{col 42}{space 1}    1.16{col 51}{space 3}0.247{col 59}{space 4}-.2131101{col 72}{space 3}     .821
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0289075{col 31}{space 2} .0706551{col 42}{space 1}   -0.41{col 51}{space 3}0.683{col 59}{space 4}-.1689294{col 72}{space 3} .1111144
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0036437{col 31}{space 2} .0025207{col 42}{space 1}   -1.45{col 51}{space 3}0.151{col 59}{space 4}-.0086392{col 72}{space 3} .0013518
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0249184{col 31}{space 2} .1002922{col 42}{space 1}    0.25{col 51}{space 3}0.804{col 59}{space 4}-.1738373{col 72}{space 3} .2236741
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0840066{col 31}{space 2} .0768152{col 42}{space 1}   -1.09{col 51}{space 3}0.277{col 59}{space 4}-.2362363{col 72}{space 3} .0682232
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .1637258{col 31}{space 2} .0503401{col 42}{space 1}    3.25{col 51}{space 3}0.002{col 59}{space 4} .0639635{col 72}{space 3} .2634882
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1086809{col 31}{space 2}  .038827{col 42}{space 1}    2.80{col 51}{space 3}0.006{col 59}{space 4} .0317349{col 72}{space 3} .1856269
{txt}{space 8}everdemoc {c |}{col 19}{res}{space 2}   .00694{col 31}{space 2} .4397898{col 42}{space 1}    0.02{col 51}{space 3}0.987{col 59}{space 4}-.8646201{col 72}{space 3} .8785001
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. eststo: reghdfe Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt c.ts_democ##c.ts_democ##c.ts_democ, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}(dropped 2 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}  11{txt},{res}    110{txt}){col 67}= {res}      3.40
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.7971
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7860
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0592
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.4184

{txt}{ralign 98:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 33}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 34}{c |}{col 46}    Robust
{col 1}                         Protest{col 34}{c |} Coefficient{col 46}  std. err.{col 58}      t{col 66}   P>|t|{col 74}     [95% con{col 87}f. interval]
{hline 33}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}secretpol_revised {c |}{col 34}{res}{space 2}-.2653827{col 46}{space 2} .0989615{col 57}{space 1}   -2.68{col 66}{space 3}0.008{col 74}{space 4}-.4615012{col 87}{space 3}-.0692643
{txt}{space 32} {c |}
{space 26}ln_pop {c |}
{space 29}L1. {c |}{col 34}{res}{space 2} .2371378{col 46}{space 2} .2682681{col 57}{space 1}    0.88{col 66}{space 3}0.379{col 74}{space 4}-.2945066{col 87}{space 3} .7687822
{txt}{space 32} {c |}
{space 24}ln_gdppc {c |}
{space 29}L1. {c |}{col 34}{res}{space 2}-.0256213{col 46}{space 2} .0735969{col 57}{space 1}   -0.35{col 66}{space 3}0.728{col 74}{space 4} -.171473{col 87}{space 3} .1202304
{txt}{space 32} {c |}
{space 27}l12gr {c |}{col 34}{res}{space 2}-.0034576{col 46}{space 2} .0025418{col 57}{space 1}   -1.36{col 66}{space 3}0.177{col 74}{space 4} -.008495{col 87}{space 3} .0015797
{txt}{space 32} {c |}
{space 24}lexclpop {c |}
{space 29}L1. {c |}{col 34}{res}{space 2} .0282833{col 46}{space 2}  .097305{col 57}{space 1}    0.29{col 66}{space 3}0.772{col 74}{space 4}-.1645525{col 87}{space 3}  .221119
{txt}{space 32} {c |}
{space 21}nbr_protest {c |}{col 34}{res}{space 2} -.084484{col 46}{space 2} .0731405{col 57}{space 1}   -1.16{col 66}{space 3}0.251{col 74}{space 4}-.2294314{col 87}{space 3} .0604634
{txt}{space 22}intrastate {c |}{col 34}{res}{space 2} .1710095{col 46}{space 2} .0496286{col 57}{space 1}    3.45{col 66}{space 3}0.001{col 74}{space 4} .0726572{col 87}{space 3} .2693618
{txt}{space 25}attempt {c |}{col 34}{res}{space 2} .1053263{col 46}{space 2} .0388513{col 57}{space 1}    2.71{col 66}{space 3}0.008{col 74}{space 4} .0283322{col 87}{space 3} .1823204
{txt}{space 24}ts_democ {c |}{col 34}{res}{space 2}-.0108827{col 46}{space 2} .0155341{col 57}{space 1}   -0.70{col 66}{space 3}0.485{col 74}{space 4}-.0416676{col 87}{space 3} .0199022
{txt}{space 32} {c |}
{space 11}c.ts_democ#c.ts_democ {c |}{col 34}{res}{space 2} .0008282{col 46}{space 2} .0005708{col 57}{space 1}    1.45{col 66}{space 3}0.150{col 74}{space 4}-.0003029{col 87}{space 3} .0019594
{txt}{space 32} {c |}
c.ts_democ#c.ts_democ#c.ts_democ {c |}{col 34}{res}{space 2}-.0000103{col 46}{space 2} 6.26e-06{col 57}{space 1}   -1.64{col 66}{space 3}0.103{col 74}{space 4}-.0000227{col 87}{space 3} 2.11e-06
{txt}{hline 33}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. esttab using secpol_protest_civilsoc, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("All models include Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_civilsoc.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_civilsoc.rtf"'})

{com}. 
. 
. * Section 7, Figure 3 Supplementary Materials - Sensitivitiy to unobserved confounders (Colour changed via plot editor, sensemakr includes no option for doing so)
. sensemakr Protest secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt i.ccode i.year, treat(secretpol_) gbenchmark(intrastate attempt) contourplot kd(1 3 5 7 9)
{res}
{space 59}{txt} DOF    =    3085 
{space 59} q      =    1.00 
{space 59} alpha  =    0.05 
{space 59} reduce =    TRUE
{space 59} H0     =       0
{res}
{txt} Treatment{space 5} {c |} {space 4}Coef.{space 5} S.E.{space 6}t(H0){space 4}R2yd.x{space 5}RV_q{space 4}RV_qa
{res}{hline 16}{c +}{hline 59}
{txt}secretpol_revis {c |}  {res} -0.2759    0.0354    -7.7979    0.0193   0.1309   0.0997

{txt} Partial R2 of the treatment with the outcome (R2yd.x): 
 An extreme confounder (orthogonal to the covariates) that explains 100 percent of the 
 residual variance of the outcome, would need to explain at least 1.93 percent of the 
 residual variance of the treatment to fully account for the observed estimated effect. 
 
{res}{txt} Robustness Value, q = 1.00 (RV_q): 
 Unobserved confounders (orthogonal to the covariates) that explain more than 13.09 percent 
 of the residual variance of both the treatment and the outcome are strong enough to bring 
 the point estimate to 0 (a bias of 100 percent of the original estimate). Conversely, 
 unobserved confounders that do not explain more than 13.09 percent of the residual variance 
 of both the treatment and the outcome are not strong enough to bring the point estimate 
 to 0. 
 
{res}{txt} Robustness Value, q = 1.00, alpha = 0.05 (RV_qa): 
 Unobserved confounders (orthogonal to the covariates) that explain more than 9.97 percent 
 of the residual variance of both the treatment and the outcome are strong enough to bring 
 the estimate to a range where it is no longer 'statistically different' from 0 (a bias 
 of 100 percent of the original estimate), at the significance level of alpha = 0.05. Conversely,
 unobserved confounders that do not explain more than 9.97 percent of the residual variance 
 of both the treatment and the outcome are not strong enough to bring the estimate to a 
 range where it is no longer 'statistically different' from 0, at the significance 
 level of alpha = 0.05 
 
{res}{txt} Bounds on Omitted Variable Bias: 
{res}{txt} The table shows the maximum strength of unobserved confounders, bounded by a multiple of the 
 observed explanatory power of the chosen benchmark covariate(s) with the treatment and the outcome.

{res}{txt} Bound {space 16}{c |}{space 3}R2dz.x{space 3}R2yz.dx{space 5}Coef.{space 6}S.E.{space 5}t(H0){space 2}Lower CI{space 1}Upper CI 
{hline 23}{c +}{hline 70}
{res}{txt} 1.00x intrastate-atte {c |}{res}   0.0044    0.0194   -0.2577    0.0351   -7.3376   -0.3266  -0.1888 
{txt} 3.00x intrastate-atte {c |}{res}   0.0132    0.0583   -0.2210    0.0346   -6.3936   -0.2888  -0.1532 
{txt} 5.00x intrastate-atte {c |}{res}   0.0220    0.0973   -0.1840    0.0340   -5.4124   -0.2507  -0.1174 
{txt} 7.00x intrastate-atte {c |}{res}   0.0308    0.1362   -0.1467    0.0334   -4.3902   -0.2122  -0.0812 
{txt} 9.00x intrastate-atte {c |}{res}   0.0396    0.1751   -0.1090    0.0328   -3.3230   -0.1733  -0.0447 


{txt} Extreme Bound{space 9}{c |}{space 3}R2dz.x{space 3}R2yz.dx{space 5}Coef.
{hline 23}{c +}{hline 30} 
{res}{txt} 1.00x intrastate-atte {c |}{res}   0.0044{space 2}  1.0000{space 2} -0.1453 
{txt} 3.00x intrastate-atte {c |}{res}   0.0132{space 2}  1.0000{space 2} -0.0487 
{txt} 5.00x intrastate-atte {c |}{res}   0.0220{space 2}  1.0000{space 2}  0.0187 
{txt} 7.00x intrastate-atte {c |}{res}   0.0308{space 2}  1.0000{space 2}  0.0743 
{txt} 9.00x intrastate-atte {c |}{res}   0.0396{space 2}  1.0000{space 2}  0.1230 
{txt}
{com}. 
. 
. * Section 8, Table 11 Supplementary Materials - Alternative IRT models
. eststo clear
{txt}
{com}. eststo: reghdfe mean5 secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_mean5 intrastate attempt if sample==1, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    110{txt}){col 67}= {res}      3.90
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.7952
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7841
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0500
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.6127

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            mean5{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.4022755{col 31}{space 2}  .140514{col 42}{space 1}   -2.86{col 51}{space 3}0.005{col 59}{space 4}-.6807412{col 72}{space 3}-.1238098
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .4426232{col 31}{space 2} .3826074{col 42}{space 1}    1.16{col 51}{space 3}0.250{col 59}{space 4}-.3156148{col 72}{space 3} 1.200861
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0420947{col 31}{space 2} .1030633{col 42}{space 1}   -0.41{col 51}{space 3}0.684{col 59}{space 4} -.246342{col 72}{space 3} .1621526
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0053142{col 31}{space 2} .0036749{col 42}{space 1}   -1.45{col 51}{space 3}0.151{col 59}{space 4}-.0125971{col 72}{space 3} .0019687
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0364361{col 31}{space 2} .1460542{col 42}{space 1}    0.25{col 51}{space 3}0.803{col 59}{space 4} -.253009{col 72}{space 3} .3258812
{txt}{space 17} {c |}
{space 8}nbr_mean5 {c |}{col 19}{res}{space 2}-.2357709{col 31}{space 2} .2056561{col 42}{space 1}   -1.15{col 51}{space 3}0.254{col 59}{space 4}-.6433331{col 72}{space 3} .1717912
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .2389403{col 31}{space 2} .0772091{col 42}{space 1}    3.09{col 51}{space 3}0.002{col 59}{space 4} .0859301{col 72}{space 3} .3919505
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1584098{col 31}{space 2} .0566766{col 42}{space 1}    2.79{col 51}{space 3}0.006{col 59}{space 4} .0460901{col 72}{space 3} .2707295
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. eststo: reghdfe mean3 secretpol_ l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_mean3 intrastate attempt if sample==1, absorb(ccode year) vce(cluster ccode) nocons
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}     3,252
{txt}Absorbing 2 HDFE groups{col 51}F({res}   8{txt},{res}    110{txt}){col 67}= {res}      3.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0006
{txt}{col 51}R-squared{col 67}= {res}    0.7141
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6987
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0391
{txt}{col 1}Number of clusters ({res}ccode{txt}) {col 30}= {res}       111{txt}{col 51}Root MSE{col 67}= {res}    0.7803

{txt}{ralign 83:(Std. err. adjusted for {res:111} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            mean3{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.4543067{col 31}{space 2} .1491184{col 42}{space 1}   -3.05{col 51}{space 3}0.003{col 59}{space 4}-.7498243{col 72}{space 3}-.1587891
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .4583613{col 31}{space 2} .5338209{col 42}{space 1}    0.86{col 51}{space 3}0.392{col 59}{space 4}-.5995465{col 72}{space 3} 1.516269
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0536657{col 31}{space 2} .1250438{col 42}{space 1}   -0.43{col 51}{space 3}0.669{col 59}{space 4}-.3014732{col 72}{space 3} .1941418
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0068716{col 31}{space 2} .0046459{col 42}{space 1}   -1.48{col 51}{space 3}0.142{col 59}{space 4}-.0160787{col 72}{space 3} .0023354
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0513655{col 31}{space 2} .1809457{col 42}{space 1}    0.28{col 51}{space 3}0.777{col 59}{space 4}-.3072264{col 72}{space 3} .4099574
{txt}{space 17} {c |}
{space 8}nbr_mean3 {c |}{col 19}{res}{space 2}-.0194209{col 31}{space 2} .1965846{col 42}{space 1}   -0.10{col 51}{space 3}0.921{col 59}{space 4}-.4090055{col 72}{space 3} .3701637
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2} .2660493{col 31}{space 2} .0915368{col 42}{space 1}    2.91{col 51}{space 3}0.004{col 59}{space 4} .0846448{col 72}{space 3} .4474537
{txt}{space 10}attempt {c |}{col 19}{res}{space 2} .1951453{col 31}{space 2} .0720867{col 42}{space 1}    2.71{col 51}{space 3}0.008{col 59}{space 4} .0522864{col 72}{space 3} .3380042
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}       ccode{col 14}{c |}{space 1}      111{col 27}{space 1}      111{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        year{col 14}{c |}{space 1}       49{col 27}{space 1}        1{col 39}{result}{space 1}       48{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. esttab using secpol_protest_rob3, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("All models include Country- and Year-fixed effects; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_rob3.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_rob3.rtf"'})

{com}. 
. 
. * Section 9, Table 12 Supplementary Materials - Correlates of Secret Police Existence
. eststo clear
{txt}
{com}. eststo: logit secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, vce(cluster ccode)

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1857.6248}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1510.7614}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1487.3004}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1487.1406}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1487.1406}  
{res}
{txt}{col 1}Logistic regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:3,273}
{txt}{col 57}{lalign 13:Wald chi2({res:7})}{col 70} = {res}{ralign 6:41.98}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1487.1406}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.1994}

{txt}{ralign 83:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}secretpol_revised{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .5278017{col 31}{space 2} .1325686{col 42}{space 1}    3.98{col 51}{space 3}0.000{col 59}{space 4} .2679721{col 72}{space 3} .7876313
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .6471681{col 31}{space 2} .1593846{col 42}{space 1}    4.06{col 51}{space 3}0.000{col 59}{space 4} .3347801{col 72}{space 3} .9595561
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0034724{col 31}{space 2} .0155352{col 42}{space 1}   -0.22{col 51}{space 3}0.823{col 59}{space 4} -.033921{col 72}{space 3} .0269761
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} 1.798191{col 31}{space 2} .7102301{col 42}{space 1}    2.53{col 51}{space 3}0.011{col 59}{space 4} .4061658{col 72}{space 3} 3.190217
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2} .3443107{col 31}{space 2} .2354704{col 42}{space 1}    1.46{col 51}{space 3}0.144{col 59}{space 4}-.1172027{col 72}{space 3} .8058241
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-.1211983{col 31}{space 2}  .360631{col 42}{space 1}   -0.34{col 51}{space 3}0.737{col 59}{space 4}-.8280221{col 72}{space 3} .5856254
{txt}{space 10}attempt {c |}{col 19}{res}{space 2}-.8725303{col 31}{space 2} .3439804{col 42}{space 1}   -2.54{col 51}{space 3}0.011{col 59}{space 4}-1.546719{col 72}{space 3}-.1983412
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}-14.84177{col 31}{space 2} 2.719184{col 42}{space 1}   -5.46{col 51}{space 3}0.000{col 59}{space 4}-20.17127{col 72}{space 3}-9.512265
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est1{txt} stored)

{com}. eststo: logit secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate c.ts_coup##c.ts_coup c.ts_secpol##c.ts_secpol, vce(cluster ccode)

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1857.6248}  
Iteration 1:{space 3}log pseudolikelihood = {res:-732.52008}  
Iteration 2:{space 3}log pseudolikelihood = {res:-494.53657}  
Iteration 3:{space 3}log pseudolikelihood = {res:  -412.265}  
Iteration 4:{space 3}log pseudolikelihood = {res:-403.62178}  
Iteration 5:{space 3}log pseudolikelihood = {res:-403.40729}  
Iteration 6:{space 3}log pseudolikelihood = {res:-403.40697}  
Iteration 7:{space 3}log pseudolikelihood = {res:-403.40697}  
{res}
{txt}{col 1}Logistic regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:3,273}
{txt}{col 57}{lalign 13:Wald chi2({res:10})}{col 70} = {res}{ralign 6:161.80}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-403.40697}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.7828}

{txt}{ralign 89:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}      secretpol_revised{col 25}{c |} Coefficient{col 37}  std. err.{col 49}      z{col 57}   P>|z|{col 65}     [95% con{col 78}f. interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}ln_pop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .4614363{col 37}{space 2} .1494575{col 48}{space 1}    3.09{col 57}{space 3}0.002{col 65}{space 4}  .168505{col 78}{space 3} .7543676
{txt}{space 23} {c |}
{space 15}ln_gdppc {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .6277286{col 37}{space 2} .1412372{col 48}{space 1}    4.44{col 57}{space 3}0.000{col 65}{space 4} .3509087{col 78}{space 3} .9045485
{txt}{space 23} {c |}
{space 18}l12gr {c |}{col 25}{res}{space 2} .0381417{col 37}{space 2} .0182419{col 48}{space 1}    2.09{col 57}{space 3}0.037{col 65}{space 4} .0023881{col 78}{space 3} .0738952
{txt}{space 23} {c |}
{space 15}lexclpop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} 1.309818{col 37}{space 2} .6412935{col 48}{space 1}    2.04{col 57}{space 3}0.041{col 65}{space 4} .0529062{col 78}{space 3} 2.566731
{txt}{space 23} {c |}
{space 12}nbr_protest {c |}{col 25}{res}{space 2} .1897704{col 37}{space 2} .1846796{col 48}{space 1}    1.03{col 57}{space 3}0.304{col 65}{space 4}-.1721949{col 78}{space 3} .5517357
{txt}{space 13}intrastate {c |}{col 25}{res}{space 2}-.2731952{col 37}{space 2} .3883305{col 48}{space 1}   -0.70{col 57}{space 3}0.482{col 65}{space 4}-1.034309{col 78}{space 3} .4879186
{txt}{space 16}ts_coup {c |}{col 25}{res}{space 2} -.023336{col 37}{space 2} .0294814{col 48}{space 1}   -0.79{col 57}{space 3}0.429{col 65}{space 4}-.0811185{col 78}{space 3} .0344465
{txt}{space 23} {c |}
{space 4}c.ts_coup#c.ts_coup {c |}{col 25}{res}{space 2} .0007513{col 37}{space 2} .0005587{col 48}{space 1}    1.34{col 57}{space 3}0.179{col 65}{space 4}-.0003437{col 78}{space 3} .0018464
{txt}{space 23} {c |}
{space 14}ts_secpol {c |}{col 25}{res}{space 2}-.8122022{col 37}{space 2} .1060186{col 48}{space 1}   -7.66{col 57}{space 3}0.000{col 65}{space 4}-1.019995{col 78}{space 3}-.6044094
{txt}{space 23} {c |}
c.ts_secpol#c.ts_secpol {c |}{col 25}{res}{space 2} .0126059{col 37}{space 2} .0017666{col 48}{space 1}    7.14{col 57}{space 3}0.000{col 65}{space 4} .0091435{col 78}{space 3} .0160683
{txt}{space 23} {c |}
{space 18}_cons {c |}{col 25}{res}{space 2}-10.65234{col 37}{space 2} 2.855288{col 48}{space 1}   -3.73{col 57}{space 3}0.000{col 65}{space 4} -16.2486{col 78}{space 3}-5.056077
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est2{txt} stored)

{com}. eststo: logit secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate c.ts_coup##c.ts_coup c.ts_secpol##c.ts_secpol l.xpers l.Capacity, vce(cluster ccode)

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1635.8304}  
Iteration 1:{space 3}log pseudolikelihood = {res: -535.4455}  
Iteration 2:{space 3}log pseudolikelihood = {res:-334.07391}  
Iteration 3:{space 3}log pseudolikelihood = {res:-272.23891}  
Iteration 4:{space 3}log pseudolikelihood = {res:-264.49969}  
Iteration 5:{space 3}log pseudolikelihood = {res:-264.44498}  
Iteration 6:{space 3}log pseudolikelihood = {res:-264.44496}  
{res}
{txt}{col 1}Logistic regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:2,763}
{txt}{col 57}{lalign 13:Wald chi2({res:12})}{col 70} = {res}{ralign 6:167.65}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-264.44496}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.8383}

{txt}{ralign 89:(Std. err. adjusted for {res:99} clusters in {res:ccode})}
{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}      secretpol_revised{col 25}{c |} Coefficient{col 37}  std. err.{col 49}      z{col 57}   P>|z|{col 65}     [95% con{col 78}f. interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}ln_pop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .4047709{col 37}{space 2} .1488012{col 48}{space 1}    2.72{col 57}{space 3}0.007{col 65}{space 4} .1131259{col 78}{space 3} .6964159
{txt}{space 23} {c |}
{space 15}ln_gdppc {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .6212515{col 37}{space 2} .2050147{col 48}{space 1}    3.03{col 57}{space 3}0.002{col 65}{space 4}   .21943{col 78}{space 3} 1.023073
{txt}{space 23} {c |}
{space 18}l12gr {c |}{col 25}{res}{space 2} .0330783{col 37}{space 2} .0237918{col 48}{space 1}    1.39{col 57}{space 3}0.164{col 65}{space 4}-.0135528{col 78}{space 3} .0797094
{txt}{space 23} {c |}
{space 15}lexclpop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} 1.277856{col 37}{space 2} .8006983{col 48}{space 1}    1.60{col 57}{space 3}0.111{col 65}{space 4}-.2914836{col 78}{space 3} 2.847196
{txt}{space 23} {c |}
{space 12}nbr_protest {c |}{col 25}{res}{space 2} .0962998{col 37}{space 2}  .203913{col 48}{space 1}    0.47{col 57}{space 3}0.637{col 65}{space 4}-.3033623{col 78}{space 3} .4959618
{txt}{space 13}intrastate {c |}{col 25}{res}{space 2}-.3808966{col 37}{space 2} .4522913{col 48}{space 1}   -0.84{col 57}{space 3}0.400{col 65}{space 4}-1.267371{col 78}{space 3} .5055782
{txt}{space 16}ts_coup {c |}{col 25}{res}{space 2}-.0433861{col 37}{space 2} .0385245{col 48}{space 1}   -1.13{col 57}{space 3}0.260{col 65}{space 4}-.1188927{col 78}{space 3} .0321205
{txt}{space 23} {c |}
{space 4}c.ts_coup#c.ts_coup {c |}{col 25}{res}{space 2} .0011981{col 37}{space 2} .0007283{col 48}{space 1}    1.65{col 57}{space 3}0.100{col 65}{space 4}-.0002293{col 78}{space 3} .0026255
{txt}{space 23} {c |}
{space 14}ts_secpol {c |}{col 25}{res}{space 2}-.9244881{col 37}{space 2} .1425161{col 48}{space 1}   -6.49{col 57}{space 3}0.000{col 65}{space 4}-1.203815{col 78}{space 3}-.6451616
{txt}{space 23} {c |}
c.ts_secpol#c.ts_secpol {c |}{col 25}{res}{space 2} .0143438{col 37}{space 2} .0023738{col 48}{space 1}    6.04{col 57}{space 3}0.000{col 65}{space 4} .0096913{col 78}{space 3} .0189963
{txt}{space 23} {c |}
{space 18}xpers {c |}
{space 20}L1. {c |}{col 25}{res}{space 2}  2.33755{col 37}{space 2} .5798406{col 48}{space 1}    4.03{col 57}{space 3}0.000{col 65}{space 4} 1.201083{col 78}{space 3} 3.474016
{txt}{space 23} {c |}
{space 15}Capacity {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .2402285{col 37}{space 2} .4396485{col 48}{space 1}    0.55{col 57}{space 3}0.585{col 65}{space 4}-.6214668{col 78}{space 3} 1.101924
{txt}{space 23} {c |}
{space 18}_cons {c |}{col 25}{res}{space 2}   -10.07{col 37}{space 2} 3.107517{col 48}{space 1}   -3.24{col 57}{space 3}0.001{col 65}{space 4}-16.16062{col 78}{space 3}-3.979383
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est3{txt} stored)

{com}. esttab using secpol_asDV, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("Logit models; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_asDV.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_asDV.rtf"'})

{com}. 
. 
. * Section 9, Figure 4 Supplementary Materials - Correlates of Secret Police Existence
. logit secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate c.ts_coup##c.ts_coup c.ts_secpol##c.ts_secpol, vce(cluster ccode)

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1857.6248}  
Iteration 1:{space 3}log pseudolikelihood = {res:-732.52008}  
Iteration 2:{space 3}log pseudolikelihood = {res:-494.53657}  
Iteration 3:{space 3}log pseudolikelihood = {res:  -412.265}  
Iteration 4:{space 3}log pseudolikelihood = {res:-403.62178}  
Iteration 5:{space 3}log pseudolikelihood = {res:-403.40729}  
Iteration 6:{space 3}log pseudolikelihood = {res:-403.40697}  
Iteration 7:{space 3}log pseudolikelihood = {res:-403.40697}  
{res}
{txt}{col 1}Logistic regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:3,273}
{txt}{col 57}{lalign 13:Wald chi2({res:10})}{col 70} = {res}{ralign 6:161.80}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-403.40697}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.7828}

{txt}{ralign 89:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}      secretpol_revised{col 25}{c |} Coefficient{col 37}  std. err.{col 49}      z{col 57}   P>|z|{col 65}     [95% con{col 78}f. interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}ln_pop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .4614363{col 37}{space 2} .1494575{col 48}{space 1}    3.09{col 57}{space 3}0.002{col 65}{space 4}  .168505{col 78}{space 3} .7543676
{txt}{space 23} {c |}
{space 15}ln_gdppc {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .6277286{col 37}{space 2} .1412372{col 48}{space 1}    4.44{col 57}{space 3}0.000{col 65}{space 4} .3509087{col 78}{space 3} .9045485
{txt}{space 23} {c |}
{space 18}l12gr {c |}{col 25}{res}{space 2} .0381417{col 37}{space 2} .0182419{col 48}{space 1}    2.09{col 57}{space 3}0.037{col 65}{space 4} .0023881{col 78}{space 3} .0738952
{txt}{space 23} {c |}
{space 15}lexclpop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} 1.309818{col 37}{space 2} .6412935{col 48}{space 1}    2.04{col 57}{space 3}0.041{col 65}{space 4} .0529062{col 78}{space 3} 2.566731
{txt}{space 23} {c |}
{space 12}nbr_protest {c |}{col 25}{res}{space 2} .1897704{col 37}{space 2} .1846796{col 48}{space 1}    1.03{col 57}{space 3}0.304{col 65}{space 4}-.1721949{col 78}{space 3} .5517357
{txt}{space 13}intrastate {c |}{col 25}{res}{space 2}-.2731952{col 37}{space 2} .3883305{col 48}{space 1}   -0.70{col 57}{space 3}0.482{col 65}{space 4}-1.034309{col 78}{space 3} .4879186
{txt}{space 16}ts_coup {c |}{col 25}{res}{space 2} -.023336{col 37}{space 2} .0294814{col 48}{space 1}   -0.79{col 57}{space 3}0.429{col 65}{space 4}-.0811185{col 78}{space 3} .0344465
{txt}{space 23} {c |}
{space 4}c.ts_coup#c.ts_coup {c |}{col 25}{res}{space 2} .0007513{col 37}{space 2} .0005587{col 48}{space 1}    1.34{col 57}{space 3}0.179{col 65}{space 4}-.0003437{col 78}{space 3} .0018464
{txt}{space 23} {c |}
{space 14}ts_secpol {c |}{col 25}{res}{space 2}-.8122022{col 37}{space 2} .1060186{col 48}{space 1}   -7.66{col 57}{space 3}0.000{col 65}{space 4}-1.019995{col 78}{space 3}-.6044094
{txt}{space 23} {c |}
c.ts_secpol#c.ts_secpol {c |}{col 25}{res}{space 2} .0126059{col 37}{space 2} .0017666{col 48}{space 1}    7.14{col 57}{space 3}0.000{col 65}{space 4} .0091435{col 78}{space 3} .0160683
{txt}{space 23} {c |}
{space 18}_cons {c |}{col 25}{res}{space 2}-10.65234{col 37}{space 2} 2.855288{col 48}{space 1}   -3.73{col 57}{space 3}0.000{col 65}{space 4} -16.2486{col 78}{space 3}-5.056077
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, at(ts_coup=(0(2)50)) post
{res}
{txt}{col 1}Predictive margins{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,273}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Pr(secretpol_revised), predict()}{p_end}
{p2colreset}{...}
{lalign 8:1._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:0}}
{lalign 8:2._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:2}}
{lalign 8:3._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:4}}
{lalign 8:4._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:6}}
{lalign 8:5._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:8}}
{lalign 8:6._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:10}}
{lalign 8:7._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:12}}
{lalign 8:8._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:14}}
{lalign 8:9._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:16}}
{lalign 8:10._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:18}}
{lalign 8:11._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:20}}
{lalign 8:12._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:22}}
{lalign 8:13._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:24}}
{lalign 8:14._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:26}}
{lalign 8:15._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:28}}
{lalign 8:16._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:30}}
{lalign 8:17._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:32}}
{lalign 8:18._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:34}}
{lalign 8:19._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:36}}
{lalign 8:20._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:38}}
{lalign 8:21._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:40}}
{lalign 8:22._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:42}}
{lalign 8:23._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:44}}
{lalign 8:24._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:46}}
{lalign 8:25._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:48}}
{lalign 8:26._at: }{space 0}{lalign 7:ts_coup} = {res:{ralign 2:50}}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .2522588{col 26}{space 2} .0120541{col 37}{space 1}   20.93{col 46}{space 3}0.000{col 54}{space 4} .2286333{col 67}{space 3} .2758843
{txt}{space 10}2  {c |}{col 14}{res}{space 2}  .250589{col 26}{space 2} .0106553{col 37}{space 1}   23.52{col 46}{space 3}0.000{col 54}{space 4}  .229705{col 67}{space 3} .2714731
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .2491348{col 26}{space 2} .0095236{col 37}{space 1}   26.16{col 46}{space 3}0.000{col 54}{space 4} .2304688{col 67}{space 3} .2678008
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .2479022{col 26}{space 2}  .008693{col 37}{space 1}   28.52{col 46}{space 3}0.000{col 54}{space 4} .2308643{col 67}{space 3} .2649401
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .2468967{col 26}{space 2} .0081764{col 37}{space 1}   30.20{col 46}{space 3}0.000{col 54}{space 4} .2308711{col 67}{space 3} .2629222
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .2461226{col 26}{space 2} .0079533{col 37}{space 1}   30.95{col 46}{space 3}0.000{col 54}{space 4} .2305344{col 67}{space 3} .2617107
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .2455833{col 26}{space 2} .0079681{col 37}{space 1}   30.82{col 46}{space 3}0.000{col 54}{space 4} .2299662{col 67}{space 3} .2612005
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .2452814{col 26}{space 2} .0081455{col 37}{space 1}   30.11{col 46}{space 3}0.000{col 54}{space 4} .2293166{col 67}{space 3} .2612462
{txt}{space 10}9  {c |}{col 14}{res}{space 2} .2452181{col 26}{space 2} .0084101{col 37}{space 1}   29.16{col 46}{space 3}0.000{col 54}{space 4} .2287347{col 67}{space 3} .2617016
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .2453938{col 26}{space 2} .0086993{col 37}{space 1}   28.21{col 46}{space 3}0.000{col 54}{space 4} .2283434{col 67}{space 3} .2624441
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .2458076{col 26}{space 2} .0089675{col 37}{space 1}   27.41{col 46}{space 3}0.000{col 54}{space 4} .2282317{col 67}{space 3} .2633835
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .2464577{col 26}{space 2} .0091847{col 37}{space 1}   26.83{col 46}{space 3}0.000{col 54}{space 4} .2284561{col 67}{space 3} .2644593
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .2473412{col 26}{space 2} .0093345{col 37}{space 1}   26.50{col 46}{space 3}0.000{col 54}{space 4} .2290458{col 67}{space 3} .2656365
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .2484541{col 26}{space 2} .0094116{col 37}{space 1}   26.40{col 46}{space 3}0.000{col 54}{space 4} .2300076{col 67}{space 3} .2669006
{txt}{space 9}15  {c |}{col 14}{res}{space 2} .2497917{col 26}{space 2} .0094202{col 37}{space 1}   26.52{col 46}{space 3}0.000{col 54}{space 4} .2313285{col 67}{space 3} .2682549
{txt}{space 9}16  {c |}{col 14}{res}{space 2} .2513482{col 26}{space 2} .0093729{col 37}{space 1}   26.82{col 46}{space 3}0.000{col 54}{space 4} .2329777{col 67}{space 3} .2697187
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .2531171{col 26}{space 2} .0092907{col 37}{space 1}   27.24{col 46}{space 3}0.000{col 54}{space 4} .2349076{col 67}{space 3} .2713266
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .2550912{col 26}{space 2} .0092027{col 37}{space 1}   27.72{col 46}{space 3}0.000{col 54}{space 4} .2370542{col 67}{space 3} .2731281
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .2572628{col 26}{space 2} .0091448{col 37}{space 1}   28.13{col 46}{space 3}0.000{col 54}{space 4} .2393394{col 67}{space 3} .2751863
{txt}{space 9}20  {c |}{col 14}{res}{space 2}  .259624{col 26}{space 2} .0091582{col 37}{space 1}   28.35{col 46}{space 3}0.000{col 54}{space 4} .2416743{col 67}{space 3} .2775737
{txt}{space 9}21  {c |}{col 14}{res}{space 2} .2621665{col 26}{space 2} .0092853{col 37}{space 1}   28.23{col 46}{space 3}0.000{col 54}{space 4} .2439676{col 67}{space 3} .2803654
{txt}{space 9}22  {c |}{col 14}{res}{space 2} .2648823{col 26}{space 2} .0095646{col 37}{space 1}   27.69{col 46}{space 3}0.000{col 54}{space 4} .2461359{col 67}{space 3} .2836286
{txt}{space 9}23  {c |}{col 14}{res}{space 2} .2677634{col 26}{space 2} .0100248{col 37}{space 1}   26.71{col 46}{space 3}0.000{col 54}{space 4} .2481151{col 67}{space 3} .2874117
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .2708025{col 26}{space 2} .0106815{col 37}{space 1}   25.35{col 46}{space 3}0.000{col 54}{space 4} .2498672{col 67}{space 3} .2917378
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .2739931{col 26}{space 2} .0115374{col 37}{space 1}   23.75{col 46}{space 3}0.000{col 54}{space 4} .2513803{col 67}{space 3}  .296606
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .2773297{col 26}{space 2} .0125861{col 37}{space 1}   22.03{col 46}{space 3}0.000{col 54}{space 4} .2526613{col 67}{space 3}  .301998
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store secpoldv1
{txt}
{com}. logit secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate c.ts_coup##c.ts_coup c.ts_secpol##c.ts_secpol, vce(cluster ccode)

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1857.6248}  
Iteration 1:{space 3}log pseudolikelihood = {res:-732.52008}  
Iteration 2:{space 3}log pseudolikelihood = {res:-494.53657}  
Iteration 3:{space 3}log pseudolikelihood = {res:  -412.265}  
Iteration 4:{space 3}log pseudolikelihood = {res:-403.62178}  
Iteration 5:{space 3}log pseudolikelihood = {res:-403.40729}  
Iteration 6:{space 3}log pseudolikelihood = {res:-403.40697}  
Iteration 7:{space 3}log pseudolikelihood = {res:-403.40697}  
{res}
{txt}{col 1}Logistic regression{col 57}{lalign 13:Number of obs}{col 70} = {res}{ralign 6:3,273}
{txt}{col 57}{lalign 13:Wald chi2({res:10})}{col 70} = {res}{ralign 6:161.80}
{txt}{col 57}{lalign 13:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-403.40697}{txt}{col 57}{lalign 13:Pseudo R2}{col 70} = {res}{ralign 6:0.7828}

{txt}{ralign 89:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}      secretpol_revised{col 25}{c |} Coefficient{col 37}  std. err.{col 49}      z{col 57}   P>|z|{col 65}     [95% con{col 78}f. interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}ln_pop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .4614363{col 37}{space 2} .1494575{col 48}{space 1}    3.09{col 57}{space 3}0.002{col 65}{space 4}  .168505{col 78}{space 3} .7543676
{txt}{space 23} {c |}
{space 15}ln_gdppc {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} .6277286{col 37}{space 2} .1412372{col 48}{space 1}    4.44{col 57}{space 3}0.000{col 65}{space 4} .3509087{col 78}{space 3} .9045485
{txt}{space 23} {c |}
{space 18}l12gr {c |}{col 25}{res}{space 2} .0381417{col 37}{space 2} .0182419{col 48}{space 1}    2.09{col 57}{space 3}0.037{col 65}{space 4} .0023881{col 78}{space 3} .0738952
{txt}{space 23} {c |}
{space 15}lexclpop {c |}
{space 20}L1. {c |}{col 25}{res}{space 2} 1.309818{col 37}{space 2} .6412935{col 48}{space 1}    2.04{col 57}{space 3}0.041{col 65}{space 4} .0529062{col 78}{space 3} 2.566731
{txt}{space 23} {c |}
{space 12}nbr_protest {c |}{col 25}{res}{space 2} .1897704{col 37}{space 2} .1846796{col 48}{space 1}    1.03{col 57}{space 3}0.304{col 65}{space 4}-.1721949{col 78}{space 3} .5517357
{txt}{space 13}intrastate {c |}{col 25}{res}{space 2}-.2731952{col 37}{space 2} .3883305{col 48}{space 1}   -0.70{col 57}{space 3}0.482{col 65}{space 4}-1.034309{col 78}{space 3} .4879186
{txt}{space 16}ts_coup {c |}{col 25}{res}{space 2} -.023336{col 37}{space 2} .0294814{col 48}{space 1}   -0.79{col 57}{space 3}0.429{col 65}{space 4}-.0811185{col 78}{space 3} .0344465
{txt}{space 23} {c |}
{space 4}c.ts_coup#c.ts_coup {c |}{col 25}{res}{space 2} .0007513{col 37}{space 2} .0005587{col 48}{space 1}    1.34{col 57}{space 3}0.179{col 65}{space 4}-.0003437{col 78}{space 3} .0018464
{txt}{space 23} {c |}
{space 14}ts_secpol {c |}{col 25}{res}{space 2}-.8122022{col 37}{space 2} .1060186{col 48}{space 1}   -7.66{col 57}{space 3}0.000{col 65}{space 4}-1.019995{col 78}{space 3}-.6044094
{txt}{space 23} {c |}
c.ts_secpol#c.ts_secpol {c |}{col 25}{res}{space 2} .0126059{col 37}{space 2} .0017666{col 48}{space 1}    7.14{col 57}{space 3}0.000{col 65}{space 4} .0091435{col 78}{space 3} .0160683
{txt}{space 23} {c |}
{space 18}_cons {c |}{col 25}{res}{space 2}-10.65234{col 37}{space 2} 2.855288{col 48}{space 1}   -3.73{col 57}{space 3}0.000{col 65}{space 4} -16.2486{col 78}{space 3}-5.056077
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, at(ts_secpol=(0(2)50)) post
{res}
{txt}{col 1}Predictive margins{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:3,273}
{txt}{col 1}Model VCE: {res:Robust}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Pr(secretpol_revised), predict()}{p_end}
{p2colreset}{...}
{lalign 8:1._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:0}}
{lalign 8:2._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:2}}
{lalign 8:3._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:4}}
{lalign 8:4._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:6}}
{lalign 8:5._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:8}}
{lalign 8:6._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:10}}
{lalign 8:7._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:12}}
{lalign 8:8._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:14}}
{lalign 8:9._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:16}}
{lalign 8:10._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:18}}
{lalign 8:11._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:20}}
{lalign 8:12._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:22}}
{lalign 8:13._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:24}}
{lalign 8:14._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:26}}
{lalign 8:15._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:28}}
{lalign 8:16._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:30}}
{lalign 8:17._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:32}}
{lalign 8:18._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:34}}
{lalign 8:19._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:36}}
{lalign 8:20._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:38}}
{lalign 8:21._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:40}}
{lalign 8:22._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:42}}
{lalign 8:23._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:44}}
{lalign 8:24._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:46}}
{lalign 8:25._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:48}}
{lalign 8:26._at: }{space 0}{lalign 9:ts_secpol} = {res:{ralign 2:50}}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .7850792{col 26}{space 2}  .039179{col 37}{space 1}   20.04{col 46}{space 3}0.000{col 54}{space 4} .7082897{col 67}{space 3} .8618688
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .5075969{col 26}{space 2} .0361312{col 37}{space 1}   14.05{col 46}{space 3}0.000{col 54}{space 4}  .436781{col 67}{space 3} .5784128
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .2487516{col 26}{space 2} .0497837{col 37}{space 1}    5.00{col 46}{space 3}0.000{col 54}{space 4} .1511772{col 67}{space 3} .3463259
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0984677{col 26}{space 2} .0400358{col 37}{space 1}    2.46{col 46}{space 3}0.014{col 54}{space 4}  .019999{col 67}{space 3} .1769365
{txt}{space 10}5  {c |}{col 14}{res}{space 2}  .034507{col 26}{space 2} .0215748{col 37}{space 1}    1.60{col 46}{space 3}0.110{col 54}{space 4}-.0077789{col 67}{space 3} .0767929
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .0117796{col 26}{space 2} .0096344{col 37}{space 1}    1.22{col 46}{space 3}0.221{col 54}{space 4}-.0071034{col 67}{space 3} .0306627
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .0041931{col 26}{space 2} .0040897{col 37}{space 1}    1.03{col 46}{space 3}0.305{col 54}{space 4}-.0038227{col 67}{space 3} .0122088
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .0016128{col 26}{space 2} .0017803{col 37}{space 1}    0.91{col 46}{space 3}0.365{col 54}{space 4}-.0018765{col 67}{space 3} .0051021
{txt}{space 10}9  {c |}{col 14}{res}{space 2} .0006804{col 26}{space 2} .0008243{col 37}{space 1}    0.83{col 46}{space 3}0.409{col 54}{space 4}-.0009351{col 67}{space 3} .0022959
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0003165{col 26}{space 2} .0004123{col 37}{space 1}    0.77{col 46}{space 3}0.443{col 54}{space 4}-.0004916{col 67}{space 3} .0011247
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .0001627{col 26}{space 2} .0002244{col 37}{space 1}    0.73{col 46}{space 3}0.468{col 54}{space 4}-.0002771{col 67}{space 3} .0006025
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .0000925{col 26}{space 2} .0001333{col 37}{space 1}    0.69{col 46}{space 3}0.488{col 54}{space 4}-.0001688{col 67}{space 3} .0003537
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .0000581{col 26}{space 2} .0000866{col 37}{space 1}    0.67{col 46}{space 3}0.502{col 54}{space 4}-.0001116{col 67}{space 3} .0002279
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .0000404{col 26}{space 2} .0000616{col 37}{space 1}    0.66{col 46}{space 3}0.512{col 54}{space 4}-.0000804{col 67}{space 3} .0001612
{txt}{space 9}15  {c |}{col 14}{res}{space 2} .0000311{col 26}{space 2}  .000048{col 37}{space 1}    0.65{col 46}{space 3}0.518{col 54}{space 4}-.0000631{col 67}{space 3} .0001252
{txt}{space 9}16  {c |}{col 14}{res}{space 2} .0000264{col 26}{space 2} .0000411{col 37}{space 1}    0.64{col 46}{space 3}0.520{col 54}{space 4}-.0000541{col 67}{space 3} .0001069
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .0000248{col 26}{space 2} .0000385{col 37}{space 1}    0.65{col 46}{space 3}0.519{col 54}{space 4}-.0000506{col 67}{space 3} .0001003
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .0000258{col 26}{space 2} .0000395{col 37}{space 1}    0.65{col 46}{space 3}0.513{col 54}{space 4}-.0000517{col 67}{space 3} .0001033
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .0000297{col 26}{space 2} .0000445{col 37}{space 1}    0.67{col 46}{space 3}0.504{col 54}{space 4}-.0000576{col 67}{space 3}  .000117
{txt}{space 9}20  {c |}{col 14}{res}{space 2} .0000378{col 26}{space 2}  .000055{col 37}{space 1}    0.69{col 46}{space 3}0.491{col 54}{space 4}-.0000699{col 67}{space 3} .0001456
{txt}{space 9}21  {c |}{col 14}{res}{space 2} .0000533{col 26}{space 2} .0000743{col 37}{space 1}    0.72{col 46}{space 3}0.473{col 54}{space 4}-.0000923{col 67}{space 3} .0001988
{txt}{space 9}22  {c |}{col 14}{res}{space 2}  .000083{col 26}{space 2} .0001097{col 37}{space 1}    0.76{col 46}{space 3}0.450{col 54}{space 4}-.0001321{col 67}{space 3}  .000298
{txt}{space 9}23  {c |}{col 14}{res}{space 2} .0001429{col 26}{space 2}  .000177{col 37}{space 1}    0.81{col 46}{space 3}0.420{col 54}{space 4}-.0002041{col 67}{space 3} .0004898
{txt}{space 9}24  {c |}{col 14}{res}{space 2}  .000272{col 26}{space 2} .0003112{col 37}{space 1}    0.87{col 46}{space 3}0.382{col 54}{space 4}-.0003379{col 67}{space 3} .0008819
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .0005723{col 26}{space 2} .0005942{col 37}{space 1}    0.96{col 46}{space 3}0.335{col 54}{space 4}-.0005923{col 67}{space 3} .0017368
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .0013287{col 26}{space 2} .0012258{col 37}{space 1}    1.08{col 46}{space 3}0.278{col 54}{space 4}-.0010739{col 67}{space 3} .0037312
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store secpoldv2
{txt}
{com}. coefplot (secpoldv1, recast(line) ciopts(recast(rline) lpattern(dash)) yscale(range(0 0.3))), bylabel(Time since last Coup Attempt) || (secpoldv2, recast(line) ciopts(recast(rline) lpattern(dash)) yscale(range(0 0.9)) ylabel(#10)), bylabel(Time since last Secret Police) || , scheme(plotplain) at xlabel(0 10 20 30 40 50) byopts(yrescale cols(2))
{res}{txt}
{com}. 
. 
. * Section 10, Table 13 Supplementary Materials - Alternative Dependent Variable: Repression
. eststo clear
{txt}
{com}. eststo: xtologit kill secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, vce(cluster ccode)
{res}{txt}
Fitting comparison model:

Iteration 0:{space 3}log likelihood = {res: -2213.895}  
Iteration 1:{space 3}log likelihood = {res:-1814.8112}  
Iteration 2:{space 3}log likelihood = {res:-1802.8514}  
Iteration 3:{space 3}log likelihood = {res:-1802.7455}  
Iteration 4:{space 3}log likelihood = {res:-1802.7455}  

Refining starting values:

Grid node 0:{space 3}log likelihood = {res:-1688.3649}

Fitting full model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1688.3649}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1667.0197}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1666.1785}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1666.1631}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1666.1631}  
{res}
{txt}{col 1}Random-effects ordered logistic regression{col 54}{lalign 16:Number of obs}{col 70} = {res}{ralign 6:2,054}
{txt}{col 1}{txt}Group variable: {res}ccode{txt}{col 54}{lalign 16:Number of groups}{col 70} = {res}{ralign 6:114}

{txt}{col 1}Random effects u_i ~ {txt:Gaussian}{col 54}Obs per group:
{col 54}{ralign 16:min}{col 70} = {res}{ralign 6:1}
{txt}{col 54}{ralign 16:avg}{col 70} = {res}{ralign 6:18.0}
{txt}{col 54}{ralign 16:max}{col 70} = {res}{ralign 6:30}

{txt}{col 1}Integration method: {res:mvaghermite}{col 54}{lalign 16:Integration pts.}{col 70} = {res}{ralign 6:12}

{txt}{col 54}{lalign 16:Wald chi2({res:8})}{col 70} = {res}{ralign 6:116.11}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1666.1631}{txt}{col 54}{lalign 16:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}

{txt}{ralign 83:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}             kill{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2} -.384524{col 31}{space 2} .2927197{col 42}{space 1}   -1.31{col 51}{space 3}0.189{col 59}{space 4} -.958244{col 72}{space 3}  .189196
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.7532721{col 31}{space 2} .1225303{col 42}{space 1}   -6.15{col 51}{space 3}0.000{col 59}{space 4}-.9934271{col 72}{space 3}-.5131171
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .1108902{col 31}{space 2} .1431083{col 42}{space 1}    0.77{col 51}{space 3}0.438{col 59}{space 4} -.169597{col 72}{space 3} .3913774
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0159109{col 31}{space 2} .0138211{col 42}{space 1}   -1.15{col 51}{space 3}0.250{col 59}{space 4}-.0429998{col 72}{space 3}  .011178
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.0283098{col 31}{space 2} .5512682{col 42}{space 1}   -0.05{col 51}{space 3}0.959{col 59}{space 4}-1.108776{col 72}{space 3} 1.052156
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.0030848{col 31}{space 2} .1827317{col 42}{space 1}   -0.02{col 51}{space 3}0.987{col 59}{space 4}-.3612324{col 72}{space 3} .3550627
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-2.022808{col 31}{space 2} .3077142{col 42}{space 1}   -6.57{col 51}{space 3}0.000{col 59}{space 4}-2.625917{col 72}{space 3}  -1.4197
{txt}{space 10}attempt {c |}{col 19}{res}{space 2}-.6166375{col 31}{space 2} .3115913{col 42}{space 1}   -1.98{col 51}{space 3}0.048{col 59}{space 4}-1.227345{col 72}{space 3}-.0059299
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}/cut1 {c |}{col 19}{res}{space 2}-13.64634{col 31}{space 2} 2.280623{col 59}{space 4}-18.11628{col 72}{space 3}-9.176399
{txt}{space 12}/cut2 {c |}{col 19}{res}{space 2}-10.90228{col 31}{space 2} 2.255883{col 59}{space 4}-15.32373{col 72}{space 3}-6.480834
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        /sigma2_u {c |}{col 19}{res}{space 2} 1.613862{col 31}{space 2} .3878943{col 59}{space 4} 1.007578{col 72}{space 3} 2.584961
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est1{txt} stored)

{com}. eststo: xtologit disap secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, vce(cluster ccode)
{res}{txt}
Fitting comparison model:

Iteration 0:{space 3}log likelihood = {res:-1729.3824}  
Iteration 1:{space 3}log likelihood = {res:-1436.3039}  
Iteration 2:{space 3}log likelihood = {res:-1415.2424}  
Iteration 3:{space 3}log likelihood = {res:-1415.1119}  
Iteration 4:{space 3}log likelihood = {res:-1415.1118}  

Refining starting values:

Grid node 0:{space 3}log likelihood = {res:-1336.4521}

Fitting full model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1336.4521}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1328.5218}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1328.4167}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1328.4165}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1328.4165}  
{res}
{txt}{col 1}Random-effects ordered logistic regression{col 54}{lalign 16:Number of obs}{col 70} = {res}{ralign 6:2,054}
{txt}{col 1}{txt}Group variable: {res}ccode{txt}{col 54}{lalign 16:Number of groups}{col 70} = {res}{ralign 6:114}

{txt}{col 1}Random effects u_i ~ {txt:Gaussian}{col 54}Obs per group:
{col 54}{ralign 16:min}{col 70} = {res}{ralign 6:1}
{txt}{col 54}{ralign 16:avg}{col 70} = {res}{ralign 6:18.0}
{txt}{col 54}{ralign 16:max}{col 70} = {res}{ralign 6:30}

{txt}{col 1}Integration method: {res:mvaghermite}{col 54}{lalign 16:Integration pts.}{col 70} = {res}{ralign 6:12}

{txt}{col 54}{lalign 16:Wald chi2({res:8})}{col 70} = {res}{ralign 6:168.51}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1328.4165}{txt}{col 54}{lalign 16:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}

{txt}{ralign 83:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            disap{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.3075063{col 31}{space 2} .2487563{col 42}{space 1}   -1.24{col 51}{space 3}0.216{col 59}{space 4}-.7950597{col 72}{space 3}  .180047
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.3695331{col 31}{space 2} .0865351{col 42}{space 1}   -4.27{col 51}{space 3}0.000{col 59}{space 4}-.5391387{col 72}{space 3}-.1999275
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0916323{col 31}{space 2} .1397166{col 42}{space 1}    0.66{col 51}{space 3}0.512{col 59}{space 4}-.1822072{col 72}{space 3} .3654718
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0084156{col 31}{space 2} .0199093{col 42}{space 1}   -0.42{col 51}{space 3}0.673{col 59}{space 4}-.0474371{col 72}{space 3} .0306059
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.8210683{col 31}{space 2} .4743774{col 42}{space 1}   -1.73{col 51}{space 3}0.083{col 59}{space 4}-1.750831{col 72}{space 3} .1086943
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.2880019{col 31}{space 2} .1685435{col 42}{space 1}   -1.71{col 51}{space 3}0.087{col 59}{space 4} -.618341{col 72}{space 3} .0423373
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-2.096792{col 31}{space 2} .2370374{col 42}{space 1}   -8.85{col 51}{space 3}0.000{col 59}{space 4}-2.561377{col 72}{space 3}-1.632207
{txt}{space 10}attempt {c |}{col 19}{res}{space 2}-.4471151{col 31}{space 2} .2677695{col 42}{space 1}   -1.67{col 51}{space 3}0.095{col 59}{space 4}-.9719336{col 72}{space 3} .0777034
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}/cut1 {c |}{col 19}{res}{space 2}-9.007877{col 31}{space 2}  2.00425{col 59}{space 4}-12.93613{col 72}{space 3} -5.07962
{txt}{space 12}/cut2 {c |}{col 19}{res}{space 2}-6.988179{col 31}{space 2} 1.968785{col 59}{space 4}-10.84693{col 72}{space 3} -3.12943
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        /sigma2_u {c |}{col 19}{res}{space 2} 1.309554{col 31}{space 2}  .303125{col 59}{space 4}  .831944{col 72}{space 3} 2.061354
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est2{txt} stored)

{com}. eststo: xtologit polpris secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, vce(cluster ccode)
{res}{txt}
Fitting comparison model:

Iteration 0:{space 3}log likelihood = {res:-2072.7402}  
Iteration 1:{space 3}log likelihood = {res:-1783.5107}  
Iteration 2:{space 3}log likelihood = {res:-1777.0069}  
Iteration 3:{space 3}log likelihood = {res:-1776.9798}  
Iteration 4:{space 3}log likelihood = {res:-1776.9798}  

Refining starting values:

Grid node 0:{space 3}log likelihood = {res: -1617.323}

Fitting full model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res: -1617.323}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1589.9934}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1588.5203}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1588.4762}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1588.4761}  
{res}
{txt}{col 1}Random-effects ordered logistic regression{col 54}{lalign 16:Number of obs}{col 70} = {res}{ralign 6:2,054}
{txt}{col 1}{txt}Group variable: {res}ccode{txt}{col 54}{lalign 16:Number of groups}{col 70} = {res}{ralign 6:114}

{txt}{col 1}Random effects u_i ~ {txt:Gaussian}{col 54}Obs per group:
{col 54}{ralign 16:min}{col 70} = {res}{ralign 6:1}
{txt}{col 54}{ralign 16:avg}{col 70} = {res}{ralign 6:18.0}
{txt}{col 54}{ralign 16:max}{col 70} = {res}{ralign 6:30}

{txt}{col 1}Integration method: {res:mvaghermite}{col 54}{lalign 16:Integration pts.}{col 70} = {res}{ralign 6:12}

{txt}{col 54}{lalign 16:Wald chi2({res:8})}{col 70} = {res}{ralign 6:126.45}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1588.4761}{txt}{col 54}{lalign 16:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}

{txt}{ralign 83:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          polpris{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-1.754795{col 31}{space 2} .2852164{col 42}{space 1}   -6.15{col 51}{space 3}0.000{col 59}{space 4}-2.313809{col 72}{space 3}-1.195781
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.3818859{col 31}{space 2} .1314398{col 42}{space 1}   -2.91{col 51}{space 3}0.004{col 59}{space 4}-.6395031{col 72}{space 3}-.1242686
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0054787{col 31}{space 2} .1450858{col 42}{space 1}    0.04{col 51}{space 3}0.970{col 59}{space 4}-.2788842{col 72}{space 3} .2898417
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0109654{col 31}{space 2} .0122474{col 42}{space 1}   -0.90{col 51}{space 3}0.371{col 59}{space 4}  -.03497{col 72}{space 3} .0130391
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-1.193289{col 31}{space 2} .5603369{col 42}{space 1}   -2.13{col 51}{space 3}0.033{col 59}{space 4}-2.291529{col 72}{space 3}-.0950492
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.1742895{col 31}{space 2} .1784567{col 42}{space 1}   -0.98{col 51}{space 3}0.329{col 59}{space 4}-.5240582{col 72}{space 3} .1754793
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-1.173281{col 31}{space 2} .2314172{col 42}{space 1}   -5.07{col 51}{space 3}0.000{col 59}{space 4}-1.626851{col 72}{space 3}-.7197119
{txt}{space 10}attempt {c |}{col 19}{res}{space 2}-.7663813{col 31}{space 2} .2048747{col 42}{space 1}   -3.74{col 51}{space 3}0.000{col 59}{space 4}-1.167928{col 72}{space 3}-.3648342
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}/cut1 {c |}{col 19}{res}{space 2}-7.300282{col 31}{space 2} 2.528206{col 59}{space 4}-12.25547{col 72}{space 3} -2.34509
{txt}{space 12}/cut2 {c |}{col 19}{res}{space 2}-4.548917{col 31}{space 2}  2.53551{col 59}{space 4}-9.518425{col 72}{space 3} .4205903
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        /sigma2_u {c |}{col 19}{res}{space 2} 2.303058{col 31}{space 2} .5609564{col 59}{space 4}  1.42882{col 72}{space 3} 3.712208
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est3{txt} stored)

{com}. eststo: xtologit tort secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, vce(cluster ccode)
{res}{txt}
Fitting comparison model:

Iteration 0:{space 3}log likelihood = {res:-1867.7522}  
Iteration 1:{space 3}log likelihood = {res:-1639.1141}  
Iteration 2:{space 3}log likelihood = {res:-1633.2982}  
Iteration 3:{space 3}log likelihood = {res:-1633.2757}  
Iteration 4:{space 3}log likelihood = {res:-1633.2757}  

Refining starting values:

Grid node 0:{space 3}log likelihood = {res:-1533.7434}

Fitting full model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1533.7434}  
Iteration 1:{space 3}log pseudolikelihood = {res:  -1509.42}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1508.0189}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1507.9592}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1507.9589}  
Iteration 5:{space 3}log pseudolikelihood = {res:-1507.9589}  
{res}
{txt}{col 1}Random-effects ordered logistic regression{col 54}{lalign 16:Number of obs}{col 70} = {res}{ralign 6:2,054}
{txt}{col 1}{txt}Group variable: {res}ccode{txt}{col 54}{lalign 16:Number of groups}{col 70} = {res}{ralign 6:114}

{txt}{col 1}Random effects u_i ~ {txt:Gaussian}{col 54}Obs per group:
{col 54}{ralign 16:min}{col 70} = {res}{ralign 6:1}
{txt}{col 54}{ralign 16:avg}{col 70} = {res}{ralign 6:18.0}
{txt}{col 54}{ralign 16:max}{col 70} = {res}{ralign 6:30}

{txt}{col 1}Integration method: {res:mvaghermite}{col 54}{lalign 16:Integration pts.}{col 70} = {res}{ralign 6:12}

{txt}{col 54}{lalign 16:Wald chi2({res:8})}{col 70} = {res}{ralign 6:87.34}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-1507.9589}{txt}{col 54}{lalign 16:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}

{txt}{ralign 83:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}             tort{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.8157618{col 31}{space 2} .2746758{col 42}{space 1}   -2.97{col 51}{space 3}0.003{col 59}{space 4}-1.354116{col 72}{space 3}-.2774071
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.7705862{col 31}{space 2} .1517407{col 42}{space 1}   -5.08{col 51}{space 3}0.000{col 59}{space 4}-1.067993{col 72}{space 3}-.4731799
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0204831{col 31}{space 2} .1487731{col 42}{space 1}    0.14{col 51}{space 3}0.890{col 59}{space 4}-.2711068{col 72}{space 3}  .312073
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0336645{col 31}{space 2} .0155141{col 42}{space 1}   -2.17{col 51}{space 3}0.030{col 59}{space 4}-.0640716{col 72}{space 3}-.0032575
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .4590876{col 31}{space 2} .4491957{col 42}{space 1}    1.02{col 51}{space 3}0.307{col 59}{space 4}-.4213199{col 72}{space 3} 1.339495
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.1654941{col 31}{space 2} .1890132{col 42}{space 1}   -0.88{col 51}{space 3}0.381{col 59}{space 4}-.5359532{col 72}{space 3}  .204965
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-1.002659{col 31}{space 2} .2304422{col 42}{space 1}   -4.35{col 51}{space 3}0.000{col 59}{space 4}-1.454317{col 72}{space 3}-.5510007
{txt}{space 10}attempt {c |}{col 19}{res}{space 2}-.1028389{col 31}{space 2} .2858655{col 42}{space 1}   -0.36{col 51}{space 3}0.719{col 59}{space 4} -.663125{col 72}{space 3} .4574472
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}/cut1 {c |}{col 19}{res}{space 2}-12.20311{col 31}{space 2} 2.772472{col 59}{space 4}-17.63705{col 72}{space 3}-6.769164
{txt}{space 12}/cut2 {c |}{col 19}{res}{space 2} -9.16087{col 31}{space 2} 2.773369{col 59}{space 4}-14.59657{col 72}{space 3}-3.725168
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        /sigma2_u {c |}{col 19}{res}{space 2} 1.760291{col 31}{space 2} .5340025{col 59}{space 4} .9713229{col 72}{space 3} 3.190107
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est4{txt} stored)

{com}. eststo: xtologit physint secretpol_revised l.ln_pop l.ln_gdppc l12gr l.lexclpop nbr_protest intrastate attempt, vce(cluster ccode)
{res}{txt}
Fitting comparison model:

Iteration 0:{space 3}log likelihood = {res:-4309.2463}  
Iteration 1:{space 3}log likelihood = {res:-3752.2496}  
Iteration 2:{space 3}log likelihood = {res:-3718.3591}  
Iteration 3:{space 3}log likelihood = {res:-3718.2298}  
Iteration 4:{space 3}log likelihood = {res:-3718.2298}  

Refining starting values:

Grid node 0:{space 3}log likelihood = {res:-3561.2971}

Fitting full model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-3561.2971}  
Iteration 1:{space 3}log pseudolikelihood = {res:-3517.5887}  
Iteration 2:{space 3}log pseudolikelihood = {res:-3516.5588}  
Iteration 3:{space 3}log pseudolikelihood = {res:-3516.5277}  
Iteration 4:{space 3}log pseudolikelihood = {res:-3516.5276}  
{res}
{txt}{col 1}Random-effects ordered logistic regression{col 54}{lalign 16:Number of obs}{col 70} = {res}{ralign 6:2,054}
{txt}{col 1}{txt}Group variable: {res}ccode{txt}{col 54}{lalign 16:Number of groups}{col 70} = {res}{ralign 6:114}

{txt}{col 1}Random effects u_i ~ {txt:Gaussian}{col 54}Obs per group:
{col 54}{ralign 16:min}{col 70} = {res}{ralign 6:1}
{txt}{col 54}{ralign 16:avg}{col 70} = {res}{ralign 6:18.0}
{txt}{col 54}{ralign 16:max}{col 70} = {res}{ralign 6:30}

{txt}{col 1}Integration method: {res:mvaghermite}{col 54}{lalign 16:Integration pts.}{col 70} = {res}{ralign 6:12}

{txt}{col 54}{lalign 16:Wald chi2({res:8})}{col 70} = {res}{ralign 6:250.09}
{txt}{col 1}{lalign 20:Log pseudolikelihood}{col 21} = {res}{ralign 10:-3516.5276}{txt}{col 54}{lalign 16:Prob > chi2}{col 70} = {res}{ralign 6:0.0000}

{txt}{ralign 83:(Std. err. adjusted for {res:114} clusters in {res:ccode})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          physint{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      z{col 51}   P>|z|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
secretpol_revised {c |}{col 19}{res}{space 2}-.9682666{col 31}{space 2} .2065968{col 42}{space 1}   -4.69{col 51}{space 3}0.000{col 59}{space 4}-1.373189{col 72}{space 3}-.5633443
{txt}{space 17} {c |}
{space 11}ln_pop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.8423163{col 31}{space 2} .1181571{col 42}{space 1}   -7.13{col 51}{space 3}0.000{col 59}{space 4}  -1.0739{col 72}{space 3}-.6107326
{txt}{space 17} {c |}
{space 9}ln_gdppc {c |}
{space 14}L1. {c |}{col 19}{res}{space 2} .0204525{col 31}{space 2} .1575082{col 42}{space 1}    0.13{col 51}{space 3}0.897{col 59}{space 4}-.2882579{col 72}{space 3} .3291629
{txt}{space 17} {c |}
{space 12}l12gr {c |}{col 19}{res}{space 2}-.0199073{col 31}{space 2} .0168133{col 42}{space 1}   -1.18{col 51}{space 3}0.236{col 59}{space 4}-.0528608{col 72}{space 3} .0130462
{txt}{space 17} {c |}
{space 9}lexclpop {c |}
{space 14}L1. {c |}{col 19}{res}{space 2}-.4172156{col 31}{space 2} .5303482{col 42}{space 1}   -0.79{col 51}{space 3}0.431{col 59}{space 4}-1.456679{col 72}{space 3} .6222478
{txt}{space 17} {c |}
{space 6}nbr_protest {c |}{col 19}{res}{space 2}-.2329764{col 31}{space 2} .1850005{col 42}{space 1}   -1.26{col 51}{space 3}0.208{col 59}{space 4}-.5955708{col 72}{space 3} .1296179
{txt}{space 7}intrastate {c |}{col 19}{res}{space 2}-2.212809{col 31}{space 2} .2815451{col 42}{space 1}   -7.86{col 51}{space 3}0.000{col 59}{space 4}-2.764627{col 72}{space 3} -1.66099
{txt}{space 10}attempt {c |}{col 19}{res}{space 2}-.7290007{col 31}{space 2} .2481269{col 42}{space 1}   -2.94{col 51}{space 3}0.003{col 59}{space 4}-1.215321{col 72}{space 3}-.2426808
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}/cut1 {c |}{col 19}{res}{space 2} -18.4841{col 31}{space 2} 2.422827{col 59}{space 4}-23.23276{col 72}{space 3}-13.73545
{txt}{space 12}/cut2 {c |}{col 19}{res}{space 2}-17.13671{col 31}{space 2} 2.399077{col 59}{space 4}-21.83881{col 72}{space 3}-12.43461
{txt}{space 12}/cut3 {c |}{col 19}{res}{space 2}-15.97658{col 31}{space 2} 2.384864{col 59}{space 4}-20.65083{col 72}{space 3}-11.30233
{txt}{space 12}/cut4 {c |}{col 19}{res}{space 2}-14.89297{col 31}{space 2}  2.36713{col 59}{space 4}-19.53246{col 72}{space 3}-10.25348
{txt}{space 12}/cut5 {c |}{col 19}{res}{space 2}-13.54096{col 31}{space 2} 2.345109{col 59}{space 4}-18.13729{col 72}{space 3}-8.944633
{txt}{space 12}/cut6 {c |}{col 19}{res}{space 2}-12.15124{col 31}{space 2} 2.341913{col 59}{space 4} -16.7413{col 72}{space 3} -7.56117
{txt}{space 12}/cut7 {c |}{col 19}{res}{space 2}-10.69065{col 31}{space 2} 2.344376{col 59}{space 4}-15.28554{col 72}{space 3}-6.095759
{txt}{space 12}/cut8 {c |}{col 19}{res}{space 2}-9.102173{col 31}{space 2} 2.361336{col 59}{space 4}-13.73031{col 72}{space 3}-4.474039
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        /sigma2_u {c |}{col 19}{res}{space 2} 1.892558{col 31}{space 2}  .494765{col 59}{space 4} 1.133764{col 72}{space 3} 3.159192
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
({res}est5{txt} stored)

{com}. esttab using secpol_protest_dvrepression, se rtf replace star(* 0.1 ** 0.05 *** 0.01) nogaps noomitted nodepvars addnotes("Random effects ordered logit models; Standard errors clustered on the country.")
{res}{txt}{p 0 4 2}
(file {bf}
secpol_protest_dvrepression.rtf{rm}
not found)
{p_end}
{res}{txt}(output written to {browse  `"secpol_protest_dvrepression.rtf"'})

{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\mariu\Dropbox\Secret Police Protest\Data\Replication\Replication_log_secpol_protest.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}16 Aug 2023, 09:47:45
{txt}{.-}
{smcl}
{txt}{sf}{ul off}